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)
-   -   Need a little htaccess help.. (https://gfy.com/showthread.php?t=629585)

Myst 07-05-2006 01:48 AM

Need a little htaccess help..
 
How can i redirect all nonexisting directories to /index.html?

for example
www.mydomain.com/asubdirectory and www.mydomain.com/sub2 dont exist. www.mydomain.com/realdirectory does. how can i redirect /asubdirectory and /sub2 to /, and leave /realdirectory requests alone?

ps: if they can be redirected to /index.php?subdomainrequested=$thesubdomain that would be even better :)

flashbang 07-05-2006 01:51 AM

this is a job you should pay someone to figure out.... a man who has skills deserves compensation for his time...

Myst 07-05-2006 01:59 AM

i figured this would be a simple error document line in htaccess or redirectmatch

flashbang 07-05-2006 02:06 AM

well,

ErrorDocument 404 /index.html

sorry i was thinking you wanted some crazy mod rewrite

Myst 07-05-2006 06:14 PM

thanks much

Myst 07-05-2006 08:53 PM

can you redirect the request internally so the url doesnt appear to change for the surfer?

r-c-e 07-05-2006 09:20 PM

For that you need mod_rewrite

http://www.zumber.com/search.php?keywords=mod_rewrite

~Ray 07-05-2006 09:29 PM

I've had this bookmarked for years...
http://www.htaccesstools.com/

~Ray


All times are GMT -7. The time now is 04:00 PM.

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