LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   redirect url (https://www.linuxquestions.org/questions/linux-software-2/redirect-url-528864/)

munna_dude 02-13-2007 10:50 PM

redirect url
 
hi all.

I'm trying to help a friend with a redirect.

http://www.site1.org/foo is no longer active - "404 File not found" - Apache/1.3.27 Server at www.site1.org Port 80

Site1 would like anyone who types the above URL to be directed to:

http://site1.site2.net where site1 appears to be a subdomain on site2. Is it a subdomain? This URL was developed and will be hosted by site2.

So to recap, the site1 URL is no longer active. This URL now needs to point to a new URL which is supported by a separate site. The first site is hosted at Westhost.com. I have WS_FTP access and permissions to the first site on Westhost. What do I need to do to make this happen?

i need this. if u have solution replay only the solution. and
dont ask me what and why.

send an example.
am using fedora4.
solution may in any language.(c,ruby)


please shw me the way
Thanks!!

j-ray 02-14-2007 10:03 AM

do you want a http redirect for visitors who point their browsers to that url?if so you could place a javascript in an index.html on that server. If mod_rewrite on the server you may redirect a visitor with a .htaccess file like

RewriteEngine On
ErrorDocument 404 /newdocs/my404.html

depending on the directory structure of the server...

hope this helps
j

munna_dude 02-15-2007 12:18 AM

thank you
 
hi...

actually i dont know about redirect...

is the java script working in linux.(fedora4) i dont know.

but is there any solution in ruby,perl or c....

please halp me in this way...

thank you


All times are GMT -5. The time now is 07:50 PM.