|
|
|
||||
|
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 |
|
So Fucking Banned
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
|
Quick htaccess question
Im trying to redirect a site temperarily and thought htaccess redirect would be the way to go.
I cant seem to get it to redirect from the root though. Ive tried - Redirect / http://www.eprosites.com/404.htm Redirect /* http://www.eprosites.com/404.htm Redirect */ http://www.eprosites.com/404.htm any ideas |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Aug 2003
Location: Queensland.
Posts: 968
|
G'day,
fusionx wrote a very useful post here back on 1-07-2005 http://www.gofuckyourself.com/showthread.php?t=413223 I found most useful this part that might help you with what you need to do... RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.primanudes\.com RewriteRule (.*) http://www.primanudes.com/$1 [R=permanent,L] |
|
|
|
|
|
#3 |
|
OU812
Join Date: Feb 2001
Location: California
Posts: 12,651
|
i found on http://www.javascriptkit.com/howto/htaccess7.shtml
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html Note that there are 3 parts to that, which should all be on one line : the Redirect command, the location of the file/directory you want redirected relative to the root of your site (/olddirectory/oldfile.html = yoursite.com/olddirectory/oldfile.html) and the full URL of the location you want that request sent to. Each of the 3 is separated by a single space, but all on one line. You can also redirect an entire directory by simple using Redirect /olddirectory http://yoursite.com/newdirectory/ Using this method, you can redirect any number of pages no matter what you do to your directory structure. It is the fastest method that is a global affect.
__________________
Epic CashEpic Cash works for me Solar Cash Paysite Plugin Gallery of the day freesites,POTD,Gallery generator with free hosting |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
If you have mod_rewrite, this should do it:
Code:
RewriteEngine on RewriteRule ^/ http://www.eprosites.com/404.htm [R,L] |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Redirect isn't really what you want, the mod_rewrite option is better.. Check out the manual: http://httpd.apache.org/docs/1.3/mod....html#redirect
|
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Aug 2002
Posts: 9,752
|
Quote:
|
|
|
|
|
|
|
#7 |
|
So Fucking Banned
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
|
Thanks... That should give me something to work with
|
|
|
|
|
|
#8 |
|
Bon temps!
Join Date: Feb 2003
Location: down yonder
Posts: 14,194
|
Here's what I use to redirect a specific page and 404 all others:
ErrorDocument 404 http://url redirect 303 /index.html http://url
__________________
. |
|
|
|