Quote:
Originally Posted by Jon12345
I already had this code in my htaccess file:
Code:
RewriteEngine On
# Externally redirect only direct client requests for /index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index.(html?|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index.(html?|php)$ http://www.access-programmers.co.uk/$1 [R=301,L]
#
# Externally redirect to canonicalize the domain name if a non-canonical
# hostname is requested, in order to prevent duplicate-content problems
RewriteCond %{HTTP_HOST} !^(www\.access-programmers\.co.uk)?$
RewriteRule (.*) http://www.access-programmers.co.uk/$1 [R=301,L]
It seems to work for the route, but what is wrong with it because its not working for the forums. directory?
|
You have the same info in there twice use the one i uploaded