htaccess RewriteRule
Posted: Thu Mar 03, 2011 6:26 am
I am learning about the RewriteRule in htaccess.
I have it succesfully working in one domain on my shared server (a test domain, but nevertheless a real address), yet exactly the same file on another domain on the same shared server does not work.
this is the code:
AddType x-mapp-php5 .php
RewriteEngine On
RewriteRule ^Product/([^/]*)\.html$ /Product.php?name=$1 [L]
the only difference is that one is a subdomain.domain.co.uk, and the other is a http://www.domain.co.uk - but i can't see how that would actually change how it works?
Any ideas?
I have it succesfully working in one domain on my shared server (a test domain, but nevertheless a real address), yet exactly the same file on another domain on the same shared server does not work.
this is the code:
AddType x-mapp-php5 .php
RewriteEngine On
RewriteRule ^Product/([^/]*)\.html$ /Product.php?name=$1 [L]
the only difference is that one is a subdomain.domain.co.uk, and the other is a http://www.domain.co.uk - but i can't see how that would actually change how it works?
Any ideas?