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 03-01-2005, 08:08 PM   #1
Mrtwister
Registered User
 
Join Date: Jan 2005
Posts: 23
a question for server gurus

Hi.. I have been trying to get the guy who hosts my domain to have it forward to a different address. He can do this however he does not know how to make it forward the paths as well. So I am potentially losing a lot of 404 traffic and I cannot setup sub dirs or anything because the forwarding wont work correctly. How does one do this for Apache? Is there a certain rewrite rule needed or something in the .htaccess file?


Thanks!
Mrtwister is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:15 PM   #2
SplitInfinity
Confirmed User
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 3,047
ReDirect / http://www.newsite.com/

:-)

Should work just fine.
If you want to omit the paths after the domain and make all the traffic go to the main site on the new domain, do it like this:

ReDirect / http://www.newdomain.com/?

:-)
Anything after the ? will be disposed of because they will be treated as query strings. :-)

SplitInfinity should be hosting you if your host cant do that. :-)
SplitInfinity is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:17 PM   #3
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
I may know the answer to that. :food-smil


Btw who's the host?


ICQ 44-33-144
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:20 PM   #4
Mrtwister
Registered User
 
Join Date: Jan 2005
Posts: 23
Quote:
Originally Posted by SplitInfinity
ReDirect / http://www.newsite.com/

:-)

Should work just fine.
If you want to omit the paths after the domain and make all the traffic go to the main site on the new domain, do it like this:

ReDirect / http://www.newdomain.com/?

:-)
Anything after the ? will be disposed of because they will be treated as query strings. :-)

SplitInfinity should be hosting you if your host cant do that. :-)
Is that the htaccess file? They arent exactly hosting me.. just forwarding some of my domains. They are having their server do it I think somehow.. it works through an invis frame so it hides the original ip. Works fine cept it wont forward the paths. Frustrating the shit out of me.

Last edited by Mrtwister; 03-01-2005 at 08:22 PM..
Mrtwister is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:21 PM   #5
webair
Confirmed User
 
webair's Avatar
 
Industry Role:
Join Date: Feb 2002
Location: NYC, NY
Posts: 8,531
Mrtwister get with me i'll give you a tech to help you out with your issue...there are a few ways to address this

Last edited by webair; 03-01-2005 at 08:23 PM..
webair is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:26 PM   #6
SplitInfinity
Confirmed User
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 3,047
You can plop that into the httpd.conf file in your OLD domains Virtual host definitions.... Here is an example:

<VirtualHost 216.188.28.15>
ReDirect / http://www.geekypeople.com/?

# The below is no longer needed if were redirecting entirely the domain on this ip
#DocumentRoot /home/admin/bettorsearch.com/public_html

ServerAlias webhelium.com *.webhelium.com
ServerName www.webhelium.com
</VirtualHost>
SplitInfinity is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:27 PM   #7
SplitInfinity
Confirmed User
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 3,047
Note, you can also specify the TYPE of redirect:

Redirect permanent /foo http://www.example.com/bar
SplitInfinity is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:32 PM   #8
toddler
Confirmed User
 
Join Date: Jun 2002
Location: austin, tx
Posts: 1,911
slap a 301 in there, make it permanent.
toddler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:33 PM   #9
Mrtwister
Registered User
 
Join Date: Jan 2005
Posts: 23
Quote:
Originally Posted by SplitInfinity
You can plop that into the httpd.conf file in your OLD domains Virtual host definitions.... Here is an example:

<VirtualHost 216.188.28.15>
ReDirect / http://www.geekypeople.com/?

# The below is no longer needed if were redirecting entirely the domain on this ip
#DocumentRoot /home/admin/bettorsearch.com/public_html

ServerAlias webhelium.com *.webhelium.com
ServerName www.webhelium.com
</VirtualHost>
Will this work with an invisible frame to mask the url? and /? is if I dont want the directories displayed? I want the directories and all other files to show up as is on my server. So www.blah.com/hello will go to diffaddress.com/hello but still show www.blah.com in the address bar.

Thanks for your help. Much appreciated!
Mrtwister is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-01-2005, 08:37 PM   #10
SplitInfinity
Confirmed User
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 3,047
Yeah it should work just fine. You just dont use the ? for that and it will work just like you want it to. You dont even need a hidden frame.
SplitInfinity 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.