GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess help needed (https://gfy.com/showthread.php?t=513463)

xuron 09-07-2005 09:49 AM

.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?

xuron 09-07-2005 10:02 AM

bumppppppppppppppppppp

sickbeatz 09-07-2005 10:03 AM

ErrorDocument 404 /redirect.php

redirect.php:
<? header("location: http://www.yourdomain.com"); ?>

sickbeatz 09-07-2005 10:05 AM

also read about AllowOverride in apache docs

USA 09-07-2005 10:55 AM

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