wpyag.com- WordPress Themes, Tips, Tricks, Hacks, News
WordPress Themes, Tips, Tricks, Hacks, News
  • Home
  • About
  • Advertise
  • Products Page
    • Checkout
    • Transaction Results
    • Your Account
  • Home
  • Contact
  • portfolio

0
10
22
Feb, 2010

301 redirection in WordPress

Posted in WordPress Tips and Tricks Tagged Under: 301, redirection

You will need to add 301 redirection if your change url of your WordPress site. 301 redirection will redirect all the posts from old url to new url. 301 redirection also tells search engine about change of address.

Let’s say the old url was olddomain.com and new url is newdomain.com
Now you want to add 301 redirection in oldoamin.com
Follow below steps to add 301 redirection.
1) create a text file and name it as htaccess.txt
2) Add following codes in htaccess.txt

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Note: change newdomain.com to your site new address

3) Upload htaccess.txt file in wordpress installed directory i.e in public_html of olddomain.com and rename it as .htaccess
Done !!!

Few Conditions to clear doubts:
1) if old wordpress url is olddomain.com/blog than, upload .htacess file to public_html/blog

2) If new WordPress url is newdomain.com/blog, change newdomain.com to newdomain.com/blog in htaccess.txt

WordPress Plugins for 301 redirection
There are few WordPress plugins also for 301 redirection, but its better to just add a .htaccess file.


You can leave a response below, or trackback from your own site.

0 ResponsesLeave a comment ?

Leave a Reply

Click here to cancel reply.

Advertise Here Advertise Here
Advertise Here Advertise Here

Follow Our Updates

Subscribe to RSS Feed
Subscribe by Email
Follow me on Twitter

    Category

    • Free Wordpress Themes
    • Paid WordPress Theme
    • WordPress News
    • WordPress Plugins
    • WordPress Security
    • WordPress SEO
    • WordPress Theme
    • WordPress Tips and Tricks
  • Friends

    • PhotoShop Tutorials
  • Archives

    • August 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
  • Tags

    301 404 domain error free gray install ips login paid redirection security theme transfer twitter web 2.0 web hosting windows7 wordpress

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

Recent Posts

  • How to post sticky post in wordpress
  • Add "Tweet This Post" link in WordPress
  • Useful WordPress Plugins to Deal with ...
  • Disable Directory Indexing in WordPress
  • Deny Access to wp-login.php by showing ...

Popular Posts

  • Free Web 2.0 Theme - dWaterDrops
  • Free WordPress Theme - d3Dblock
  • Free WordPress Theme Hansi
  • Free WordPres theme - dOldPaper
  • Free WordPress Theme dCleanGray

Most View Posts

  • Free WordPress theme dNoteBook - 1,475 views
  • Free WordPress Theme – Udi - 195 views
  • How to post sticky post in wordpress - 180 views
  • Free Web 2.0 Theme – dWaterDrops - 163 views
  • Free WordPress Theme – ZARA - 145 views

Recent Comments

  • Audrea Wischmeyer - success.
  • laiptai - Great themes! Gonna test some ...
  • Videostanbul - Just wonderful! Thnx
  • Videostanbul - Excellence! Thnks for sharing ...
  • Wordpress Themes - [...] dDarkWindows7 | ...
© wpyag.com 2010, All Rights Reserved. Designed by: wpyag