![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
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 ![]()
__________________
ICQ: 298-523-037 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: May 2006
Posts: 767
|
this is a job you should pay someone to figure out.... a man who has skills deserves compensation for his time...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
i figured this would be a simple error document line in htaccess or redirectmatch
__________________
ICQ: 298-523-037 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2006
Posts: 767
|
well,
ErrorDocument 404 /index.html sorry i was thinking you wanted some crazy mod rewrite |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
thanks much
__________________
ICQ: 298-523-037 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
|
can you redirect the request internally so the url doesnt appear to change for the surfer?
__________________
ICQ: 298-523-037 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jul 2002
Posts: 1,070
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
visit hardlinks.org
Industry Role:
Join Date: Jun 2003
Location: Las Vegas , Nv >>> [email protected] or icq 94994627 anytime
Posts: 18,362
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |