.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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -