Hey,
I have my forum at www.mydomain.co.uk/forums/. I used to have a CMS at the domain root but not any more. I am using the following redirect in the root htaccess to move domain to the /forums folder...which works ok.
If I go to www.mydomain.co.uk/forums/index.php everything is good.
If I go to www.mydomain.co.uk then it gets redirected to the /forums/ folder...good.
If I go to www.mydomain.co.uk/index.php then I get a 404 error...not good.
How can I redirect all traffic to the /forums/ folder please?
I have my forum at www.mydomain.co.uk/forums/. I used to have a CMS at the domain root but not any more. I am using the following redirect in the root htaccess to move domain to the /forums folder...which works ok.
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} ^mydomain\.co\.uk$ RewriteRule (.*) http://www.mydomain.co.uk/$1 [R=301,L] RewriteRule ^$ forums [L]
If I go to www.mydomain.co.uk then it gets redirected to the /forums/ folder...good.
If I go to www.mydomain.co.uk/index.php then I get a 404 error...not good.
How can I redirect all traffic to the /forums/ folder please?
Comment