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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-16-2005, 05:28 PM   #1
Damian_Maxcash
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
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2005, 05:40 PM   #2
monaro
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]
monaro is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2005, 05:48 PM   #3
jimmyf
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
jimmyf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2005, 05:48 PM   #4
vending_machine
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]
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2005, 05:53 PM   #5
vending_machine
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
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2005, 05:55 PM   #6
chaze
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Posts: 9,752
Quote:
Originally Posted by vending_machine
If you have mod_rewrite, this should do it:

Code:
RewriteEngine on
RewriteRule ^/ http://www.eprosites.com/404.htm [R,L]
This should be fine for temp use, might kill your google listing though
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2005, 05:59 PM   #7
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
Thanks... That should give me something to work with
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-16-2005, 06:43 PM   #8
mardigras
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
__________________
.
mardigras is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.