.htaccess - Mask www.oldsite.com/home with www.newsite.com -



.htaccess - Mask www.oldsite.com/home with www.newsite.com -

how can mask instances of www.oldsite.com replaced www.newsite.com

example:

i'd replace: http://www.oldsite.com/home/b.jsp?id=9912&ln=115-991632

with www.newsite.com/home/b.jsp?id=9912&ln=115-991632

you can in apache redirect directive:

<virtualhost *:80> servername www.oldsite.com redirect permanent /home/ http://www.newsite.com/home/ </virtualhost>

.htaccess redirect mask

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -