Forum Moderators: phranque
[someurl.com...]
[someurl.com...]
This is loading the correct page, but isnt passing the Dubai, or Turkey bit, and its the same with the other types of urls we have, heres part of our .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_URI}!home/(.*)/$
RewriteRule ^home/(.*)$ [someurl.com...] [L,R=301]
RewriteRule ^home/(.*)/$ home_cache.php?country=$1
Help would be much appreciated....im presuming its a configuration thing.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !home/(.*)/$
RewriteRule ^home/(.*)$ http://www.example.com/home/$1/ [L,R=301]
# If requested URL-path does not resolve to an existing file
RewriteCond %{REQUEST_FILENAME} !-f
# and does not already start with "/home"
RewriteCond %{REQUEST_URI} [b]!/ho[/b]me/(.*)/$
# then internally rewrite the request to the "/home" subdirectory
RewriteRule [b](.*) /home/$1 [L][/b]
For your second rule:
RewriteRule ^home/(.*)/$ home_cache.php?country=$1
I would recommend making the trailing slash optional, though:
RewriteRule ^home/(.*)[b]/?$[/b] home_cache.php?country=$1 [L]