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 question (https://gfy.com/showthread.php?t=631879)

en1 07-10-2006 08:58 PM

htaccess question
 
I want to be able to make any destination goto a url

so if someone requests http://www.blah.com/fasdf/sdafa/sfsa.html(or any other extension) it will goto http://www.blah.com/index.html

And I want to do it without putting a htaccess in every folder

I just cant find where to do it...I know there is something I should be searching for I just need pointed in the right direction.

thanks guys

czarina 07-10-2006 09:06 PM

Keep trying you'll get there.

RogerV10 07-10-2006 09:07 PM

Google querey ".httaccess redirect"

r-c-e 07-10-2006 09:09 PM

I guess a quick solution would be to make the target page your 404 page.

ErrorDocument 404 http://www.site.com/page.html

Spudstr 07-10-2006 09:10 PM

Quote:

Originally Posted by r-c-e
I guess a quick solution would be to make the target page your 404 page.

ErrorDocument 404 http://www.site.com/page.html


put that in your root folder and it will be used in every folder under it.

en1 07-10-2006 09:11 PM

yea I read up on the redirect code...but it told me to put /directory/file.file goes to /file i want the first variable to be a wild card...so it will do it no matter what the directory is... maybe im missing it in here..ill keep reading up on it

en1 07-10-2006 09:14 PM

Quote:

Originally Posted by r-c-e
I guess a quick solution would be to make the target page your 404 page.

ErrorDocument 404 http://www.site.com/page.html


holy shit was i looking to much into this....that worked perfectly...lol

thank you very much!!!

r-c-e 07-10-2006 09:17 PM

Quote:

Originally Posted by en1
holy shit was i looking to much into this....that worked perfectly...lol

thank you very much!!!

No problem, glad I could help :)

Love Sex 07-10-2006 09:39 PM

look up 404 error page and make it in notepade


All times are GMT -7. The time now is 12:51 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123