Hi,
I have a website called www.site.com
I have a product.php file and a categories.php file that generate the URL's and content dinamically.
In .htaccess I have the following rule.
RewriteRule (.*)_(.*)\.html product.php?category=$1&name=$2
RewriteRule (.*)\.html categories.php?category=$1
Everything is ok by now.
When I try to change the rewritting rule to
RewriteRule (.*)/(.*)\.html product.php?category=$1&name=$2
RewriteRule (.*)\.html categories.php?category=$1
The paths to the images are messed up and also the paths to the css.
In my products.php file I have lines of code like
<?php include('includes/config.inc.php') ?> or <?php include('includes/myaccount.inc.php'); ?>
These still don't work if I change the rewritting rule.
Also I have a functions.js file that contains ajax scripts that communicate with the .php files inside the includes folder.
How can I tell the apache server to treat the (.*)/(.*)\.html URL as (.*)_(.*)\.html or how can I fix this ?
Thanks,
nevergone