Advertisement

Author Topic: URL redirection  (Read 1769 times)

0 Members and 1 Guest are viewing this topic.

Offline i_r_stupid

  • PH Regular
  • **
  • Posts: 773
  • Respect: 0
    • View Profile
URL redirection
« on: June 25, 2012, 12:18:40 PM »
Need help, I'm trying to redirect a URL from http://testsrv:8080/site to just 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?



Like this post: 0

Adverstisement

AOZ

  • Guest
Re: URL redirection
« Reply #1 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



Like this post: 0

tsabsuav

  • Guest
Re: URL redirection
« Reply #2 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!



Like this post: 0

 

Advertisements