im trying to make my site's dynamic url's search engine friendly But Im having a bit of a problem...
Here is what is in my .htaccess file:
Code:
RewriteEngine On
RewriteRule ^(tutorials)/$ /tutorials.php [L]
RewriteRule ^(tutorials)$ /tutorials.php [L]
RewriteRule ^tutorials/(.*)/$ /tutorials.php?c=$1 [L]
RewriteRule ^tutorials/(.*)$ /tutorials.php?c=$1 [L]
RewriteRule ^tutorials/(.*)/(.*)/$ /tutorials.php?c=$1&t=$2 [L]
RewriteRule ^tutorials/(.*)/(.*)$ /tutorials.php?c=$1&t=$2 [L]
This are what I want it to do:
domain.com/tutorials.php >> domain.com/tutorial - this works
domain.com/tutorials.php?c=4 >> domain.com/tutorial/4 - this works
domain.com/tutorials.php?c=4&t=5 >> domain.com/tutorial/4/5 - this doesnt work
The one which doesnt work works fine when its not uring mod_rewrite therefore the coding must be right...
Any ideas?
Thanks
__________________
Please login or register to view this content. Registration is FREE
- Affordable web site design solutions
|