[thelist] .htaccess rewrite to redirect
misterhaan
misterhaan at track7.org
Thu Jan 19 17:41:27 CST 2006
you shouldn't need rewrite -- use a redirectpermanent in the dev
server's .htaccess:
RedirectPermanent / http://www.exampleliveserver.com/
Just specifying / also takes everything below it, meaning this would
handle your example.
Tony Crockford wrote:
> in the middle of moving dev sites to live server and I discover that
> the dev sites are placed higher in the search engines than the
> original site.
>
> could some kind soul give me a simple .htaccess rewrite rule that I
> could stick in an .htaccess file on the dev server to redirect
> requests to the live server - page for page preferably.
>
> e.g no matter what the incoming request is it goes to the same place
> on the live server...
>
> e.g. http://www.exampledevserver.com/about.htm would be redirected to
> http://www.exampleliveserver.com/about.htm
>
>
> It's late here in the UK and getting my head round the regex and
> rewrite rules isn't happening!
>
> TIA
>
> Tony
>
More information about the thelist
mailing list