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)
-   -   a question for server gurus (https://gfy.com/showthread.php?t=438760)

Mrtwister 03-01-2005 08:08 PM

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!

SplitInfinity 03-01-2005 08:15 PM

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. :-)

JFPdude 03-01-2005 08:17 PM

I may know the answer to that. :food-smil


Btw who's the host?


ICQ 44-33-144

Mrtwister 03-01-2005 08:20 PM

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.

webair 03-01-2005 08:21 PM

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

SplitInfinity 03-01-2005 08:26 PM

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 03-01-2005 08:27 PM

Note, you can also specify the TYPE of redirect:

Redirect permanent /foo http://www.example.com/bar

toddler 03-01-2005 08:32 PM

slap a 301 in there, make it permanent.

Mrtwister 03-01-2005 08:33 PM

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!

SplitInfinity 03-01-2005 08:37 PM

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.


All times are GMT -7. The time now is 05:09 PM.

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