![]() |
.htaccess help needed
Ok I have a domain that has a bunch of subdirectories and I want to just redirect all requests to the domain via htaccess
this doesn't work right though: Redirect / http://www.newsite.com how do I do the redirect so all subdir's are redirected? |
bumppppppppppppppppppp
|
ErrorDocument 404 /redirect.php
redirect.php: <? header("location: http://www.yourdomain.com"); ?> |
also read about AllowOverride in apache docs
|
RedirectMatch temp ^/gallery/page1.htm$ http://yoursite.com
RedirectMatch temp ^/gallery/page2.htm$ http://yoursite.com RedirectMatch temp ^/gallery/page3.htm$ http://yoursite.com ErrorDocument 401 /index.htm ErrorDocument 403 http://www.yoursite.com/index.htm ErrorDocument 404 http://www.yoursite.com/index.htm ErrorDocument 500 http://www.yoursite.com/index.htm |
All times are GMT -7. The time now is 03:10 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123