http://www.example.co.uk/photos.php?main=romania&sub=transylvania
To show as:
http://www.example.co.uk/photos/romania/transylvania
Here's my code (the 301 to www. works fine):
RewriteEngine On
Options +FollowSymLinks
RewriteCond %{http_host} ^example.co.uk [NC]
RewriteRule ^(.*)$ http://www.example.co.uk/$1 [R=301,L]
RewriteRule ^photos/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/$ photos.php?main=$1&sub=$2I wondered if there's a conflict because my page is called photos.php and the start of the rule is 'photos'? I've tried a different filename but it still didn't work. I've looked at various guides online and still find myself stuck.
Thanks for any help.
Edited by TheAlex, 07 December 2012 - 04:11 PM.






