LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-13-2007, 11:50 PM   #1
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Rep: Reputation: 30
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!!
 
Old 02-14-2007, 11:03 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,457

Rep: Reputation: 104Reputation: 104
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
 
Old 02-15-2007, 01:18 AM   #3
munna_dude
Member
 
Registered: Dec 2006
Posts: 362

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
url redirect Present Linux - Networking 4 01-26-2007 10:08 AM
Apache URL issue - will redirect help... rlprofessional Linux - Newbie 9 06-16-2006 12:43 PM
Apache URL redirect problem kdogksu Linux - Networking 2 03-26-2005 03:22 PM
URL Redirect (with Masking) BxBoy General 0 03-11-2003 10:44 PM
Apache Virtual URL Redirect nxny Linux - Software 0 07-19-2002 03:36 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration