You are here:  » htaccess being displayed


htaccess being displayed

Submitted by henk on Tue, 2006-03-28 16:24 in

what is this error
Options -MultiViews RewriteEngine On RewriteBase / RewriteRule ^product/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L] RewriteRule ^review/(.*).html$ reviews.php?q=$1&rewrite=1&%{QUERY_STRING} [L] RewriteRule ^merchant/$ merchants.php RewriteRule ^merchant/(.*)/$ search.php?q=merchant:$1:&rewrite=1%{QUERY_STRING} [L] RewriteRule ^merchant/(.*)/(.*).html$ search.php?q=merchant:$1:&page=$2&rewrite=1%{QUERY_STRING} [L] RewriteRule ^category/$ categories.php RewriteRule ^category/(.*)/$ search.php?q=category:$1:&rewrite=1%{QUERY_STRING} [L] RewriteRule ^category/(.*)/(.*).html$ search.php?q=category:$1:&page=$2&rewrite=1%{QUERY_STRING} [L] RewriteRule ^brand/$ brands.php RewriteRule ^brand/(.*)/$ search.php?q=brand:$1:&rewrite=1%{QUERY_STRING} [L] RewriteRule ^brand/(.*)/(.*).html$ search.php?q=brand:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]

HEnk

Submitted by support on Tue, 2006-03-28 16:26

Hi Henk,

That's just the content of the recommended htaccess script - so i'm not sure how it's come to be printed out. What steps lead up to this happening - in other words which page are you going to that cause this to be displayed?

Submitted by henk on Tue, 2006-03-28 16:30

i cleaned the site and upload for a new install.
i get these in the admin

HENk

Submitted by support on Tue, 2006-03-28 16:31

So if you go to:

http://www.yoursite.com/admin/

You get the above printed out....? Is that the case?

Submitted by henk on Tue, 2006-03-28 16:33

yes

Submitted by support on Tue, 2006-03-28 16:35

Can you confirm, you are using search engine friendly URLs on your site; so:

- You are running Apache
- You have coppied htaccess.txt to .htaccess in the top level directory?

Thanks,
David.

Submitted by henk on Tue, 2006-03-28 20:18

K cleaned up the server, and made a new database with a new name now its working maybee something in cach

Thx Henk

next problem,

getting a error in product.php page:

Fatal error: Cannot redeclare javascript_focus() (previously declared in /home/httpd/vhosts/linkik.com/httpdocs/includes/javascript.php:2) in /home/httpd/vhosts/linkik.com/httpdocs/includes/javascript.php on line 2

Thx Henk

Submitted by support on Tue, 2006-03-28 20:30

Hi Henk,

Somehow common.inc is being re-included between the following 2 lines in products.php:

<?php
  
require("html/banner.php");
  if (isset(
$product)) require("html/product.php");
?>

Can you confirm that your products.php contains the above lines exactly as above?

Also, note that you can use &euro; as your curreny HTML if you wish to display the actual € symbol instead of the word Euro...

Submitted by henk on Tue, 2006-03-28 20:59

these are the last lines

require("html/header.php");

require("html/menu.php");

require("html/searchform.php");

require("html/banner.php");

if (isset($product)) require("html/product.php");

if (isset($prices)) require("html/prices.php");

require("html/footer.php");

the charset utf is not compatible with € sign

Thx HEnk

Submitted by support on Tue, 2006-03-28 21:01

Thanks Henk - can you post html/product.php; the error doesn't occur if there's no product; so somehow within product.php the javascript include is reloaded.

What version of Apache / PHP are you using?

Thanks for the note about the euro symbol, I wasn't aware of that...

Submitted by henk on Tue, 2006-03-28 21:21

i dont no what is happening here but i upload the product.php now with dreamweaver and it work but the next problem is that i get no reviews.

MySQL 4.1.11 plesk 7.5.4
php i must look for it

here is the html/product.php

[thanks, just wanted to have a look, i've snipped it now]

Submitted by support on Tue, 2006-03-28 21:24

It would seem that opening the files in dreamweaver is causing all sorts of issues as it doesn't leave the files in their original state.

For the reviews; you have to enable the reviews option in config.php by setting $config_useInteraction to true as follows:

<?php
$config_useInteraction 
true;
?>

Then the links will be displayed...

Submitted by henk on Tue, 2006-03-28 21:30

oh my g. THX henk