PebHmong Discussion Forum

Hobbies & Interests => Computer & Technology => Topic started by: i_r_stupid on June 25, 2012, 12:18:40 PM

Title: URL redirection
Post by: i_r_stupid on June 25, 2012, 12:18:40 PM
Need help, I'm trying to redirect a URL from http://testsrv:8080/site (http://testsrv:8080/site) to just http://location_of_site (http://location_of_site)

On a windows server 2008, using apache. Do I have to setup a forwarder in DNS, to the index.php file? Any suggestions?
Title: Re: URL redirection
Post by: AOZ on July 02, 2012, 11:02:21 PM
have u solved it?

u may wanna try creating a file: .htaccess

put the file in your main directory

inside the file:
Redirect 301 /index.htm http://newsite.whatever.com (http://newsite.whatever.com)
Title: Re: URL redirection
Post by: tsabsuav on August 20, 2012, 10:06:40 PM
The following code works well for me.  On the old-site.com, create a blank index.html or default.html and paste in the following code, save it and you are done.

<meta http-equiv="Content-Language" content="en-us"><META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://new-site.com">

Alter CONTENT="0" to the number of seconds you like to wait before the redirect takes place. Use "0; to forward immediately.

Hope this helps.  Peace!