Pages

Tuesday, December 21, 2010

301 redirects in Apache

301 redirects in Apache
Question : - I have just recreated our old .aspx website in wordpess to improve functionality.  we now are going to change hosts, and are worried about loosing our page / search rankings ect in google.
We were told that 301 redirects would do the trick.   Now i have read a little about this, but don't feel confident enough in dealing with apache and server stuff as i am a novice in those types of things.

so our old website address homepage would be www.example.org/Default.aspx  and other pages like  www.example.org/Content/Programs_Services.aspx  would be changed to www.newsite.org  (home page) and www.newsite.org/programs-services  how would i set-up 301 redirects  with different urls


Answer :- Use Apache module (mod_rewrite) ,     You need to edit File: httpd.conf and the code like
Code :
RewriteEngine On
RewriteRule /.* http://www.new-domain.com/ [R]


****AS IS**** ; Please apply at your own risk.

No comments:

Post a Comment