![]() |
Redirect - The return! Come on you geniuses..
Ok, following on from my earlier thread I am still trying to redirect all my pages to an index.html.
I have several hundred pages to direct The pages are a mixture of .php and .html I have no other code in my .htaccess file These are the peices of code I have tried along with the error message and problem: RewriteEngine on RewriteCond %{HTTP_HOST} ^sub.old-domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.old-domain.com$ RewriteRule ^(.*)$ http://www.domain.com/ [R=301,L] This didn't seem to do anything at all, none of the pages redirected. I tried several different browsers to test it. RewriteEngine On RewriteRule (.*) http://www.domain.com With this I recieve an internal server error on all my pages. redirect 301 / http://www.domain.com/index.html This one gives a strange error, something along the lines of 'could not open domain.com/bigboobs.htmlhtmlhtmlhtmlhtmlhtmlhtmlhtmlhtmlhtmlh tmlhtmlhtmlhtmlhtmlhtml RewriteRule .* index.html [QSA,L] This doesn't seem to do anything either, again I checked it in different browsers but the pages don't redirect. Come on you GFY gurus what's the problem here. I bet it's one line of code, something really simple but I don't know it and need help. |
Bumpity bump... Need some help y'all
|
Try this:
Code:
AuthType Basic |
No that didn't work either. I can't even access the homepage with that code, I get a message saying 'Redirection limit for this URL exceeded. Unable to load requested page' on Firefox
Help :helpme |
I just tested it on one of my sites and it works in Firefox and IE, with HTML and PHP pages. Did you place your .htaccess in www.domain.com/.htaccess?
|
This should do it
Code:
RewriteEngine on |
Bah!! this doesn't work either, I get the same message as above. Guess i'm just going to have to leave it.
I'm proberbly doing something wrong, just don't know what.. |
|
Quote:
Code:
RewriteEngine onhttp://httpd.apache.org/docs/2.0/misc/rewriteguide.html good luck! |
| All times are GMT -7. The time now is 06:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123