Help - Search - Members - Calendar
Full Version: redirection issues
Hostony Board > General Support > General Support
dingfelder
Im having trouble setting up redirection on my main site so that all traffic to one of the subdirectory gets sent to a file on a different domain.

specifically, I want to redirect anything in the dir:
www.computingasyoulikeit.com/familytree
to
http://www.dingfelder.org/modules.php?name=familytree

I need to make this a dynamic redirection (instead of manually listing each url to redirect seperately), because there are several hundred files in the old dir that may be linked from google or other websites. Any traffic to the directory itself or any files contained in it should get redirected.

I set up a .htaccess file from some instructions I saw on the web and tried:

Redirect /familytree http://www.dingfelder.org
I alos tried with a slash
Redirect /familytree/ http://www.dingfelder.org/
Lastly, I also tried with a 301 code
Redirect 301 /familytree/ http://www.dingfelder.org/

In all cases, it redirects the familytree folder itself but ignores requests to files within it.

I then tried using rewrite to include the files

RewriteEngine On
RewriteRule /familytree/(.*) http://www.dingfelder.org/modules.php?name=familytree

or in the familytree dir I tried:

RewriteEngine On
RewriteRule ^familytree/(.*) http://www.dingfelder.org/modules.php?name=familytree


Other variations that I tried from other people's examples (that also didnt work) included:

RewriteRule ^/familytree/.*(.*) http://www.dingfelder.org [R=301,L]

RewriteRule /familytree/.*(.*) http://www.dingfelder.org/modules.php?name=familytree

What seems to happen is that if I use a url like:
www.computingasyoulikeit.com/familytree/100.html
it gets translated into
http://www.dingfelder.org/modules.php?name...ilytree100.html

(the $1 param is getting added when I want to discard it)

Can anyone provide insight into where I am going astray ?
horhey23
QUOTE(dingfelder @ Apr 14 2004, 12:25 AM)
Redirect /familytree http://www.dingfelder.org
I alos tried with a slash
Redirect /familytree/ http://www.dingfelder.org/
Lastly, I also tried with a 301 code
Redirect 301 /familytree/ http://www.dingfelder.org/

In all cases, it redirects the familytree folder itself but ignores requests to files within it.

Did you try using this redirect specifically to the module.php page? Your redirect code looks as if it is directing to the default index page.

Maybe this will work:

CODE
Redirect /familytree http://www.dingfelder.org/modules.php?name=familytree
Alexandre
It's being working now.
You can check it by the following link:
http://computingasyoulikeit.com/familytree/
If you have a some problem or questions you can ask it by the following link:
http://support.hostony.com.
We'll try to solve problems asap.
dingfelder
hmmm.

That didnt work.

the url
http://computingasyoulikeit.com/familytree/243.html
sends me to
http://dingfelder.org/modules.php?name=familytree/243.html
it should be
http://dingfelder.org/modules.php?name=familytree

(FYI, in this case, the familytree sub dir used to be a bunch of html files for a family tree. Now, im using a phpNuke module on a new domain instead)

I tried the link you sent me for

http://support.hostony.com

It didnt like either my domain user/pass or my forum user/pass.

Do I need a seperate help desk user account ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here