PDA

View Full Version : redirect url



munna_dude
14th February 2007, 05:48 AM
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.


please shw me the way
Thanks!!

Jman
14th February 2007, 08:30 AM
Send http 301 moved permanently. If you have httpd and mod_alias use a Redirect.

munna_dude
15th February 2007, 07:25 AM
can u please show me an example for redirecting an url

thank you

alpha645
15th February 2007, 10:07 AM
can u please show me an example for redirecting an url

thank you

Try google:

To make a page redirect itself we have to use the HTML Meta Tag inside the head tag

Example:
<meta http-equiv="refresh" content="5; url=http://www.hscripts.com">
This code will redirect your webpage to the url http://www.hscripts.com after 5 seconds.

The attribute http-equiv="refresh" calls for refresh of the page.

The attribute content="5; URL=http://www.hscripts.com" sets the time interval in seconds after which the page redirection will take place and the destination page.

Make sure you follow the exact order of coding.
i.e: content="time interval in seconds; URL=resulting page";
Note that you should not use semicolon after 'url='.

So using this meta tag will redirect the page to the destination page after the time interval. To make the page to redirect to a pre-defined page edit the attribute "content" and set proper values of time and destination url as required.

This will work on all pages with any extension or server side language (php, jsp, asp, etc...).

http://www.google.nl/search?hl=nl&q=auto-redirect+webpage+code&btnG=Google+zoeken&meta=