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
i cleaned the site and upload for a new install.
i get these in the admin
HENk
So if you go to:
http://www.yoursite.com/admin/
You get the above printed out....? Is that the case?
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.
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
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 € as your curreny HTML if you wish to display the actual € symbol instead of the word Euro...
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
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...
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]
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...
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?