For full functionality of this site it is necessary to enable JavaScript.

How to apply a redirect for a website or RSS feed (301 or 302)

There are times when we need to move to a different location, for various reasons (e.g. college, work, etc.). We would either move temporarily or permanently, depending on our goals. Either way, we need to announce to institutions or friends that they can find us on a different locaton, because they will have hard time locating us if we don't leave a note.

The same principle applies to websites. Users might find an old location of a piece of content we recently moved through Google, Yahoo or other search engine, which they would like to read, and unless we notify them, or redirect them to the new location automatically, they won't be able to find it.

There are 2 types of redirects, which are made for various reasons (e.g. switching to a different hosting service, rebranding, aesthetic desire to beautify URLs, etc.): 

  • 301. which signals permanent URL redirection (e.g. you sold your house and moved out permanently);
  • 302, which signals temporary URL redirection (e.g. you didn't sell the house and you might decide to get back)

There are many languages in which websites are built, meaning that there are many ways how to inform users. You, as a website owner or manager need to notify users where the content was moved, by redirecting them to the new URL, in the exact language.

The aim of the solutions below is to assist you notify the users in the right language your website is built in.

Note: It's highly important to create a forwarding address every time you decide to switch to a new host or service, because the changes you make won't be detected by site-ranking metrics, i.e., your new content won't get the attention of the spiders (i.e. the inspectors which check the quality of the content and offer it to the public), as they will be crawling in the room you used to live and which is now empty.

Select specifications which apply:

Click on this if you are not sure how to apply a redirect in PHP (non-Wordpress/Blogger).

Click on this if you are not sure how to apply a redirect in Wordpress.

Click on this if you are not sure how to apply a redirect in Blogger.

Click on this if you are not sure how to apply a redirect in Java.

Click on this if you are not sure how to apply a redirect in Python.

Click on this if you are not sure how to apply a redirect in Ruby on Rails.

Click on this if you’re only interested in redirects on the server side (i.e. not in codes).

Click on this if you want to redirect a web page.

Click on this if want to redirect an RSS feed.

Click on this if you want to apply 301 redirect (e.g. if your content is moved permanently − see problem description above to learn more).

Click on this if you want to apply 302 redirect (e.g. if you moved your content temporarily − see problem description above to learn more).

Click on this if you are not sure how to apply a redirect in Apache.

Click on this if you are not sure how to apply a redirect in Nginx.

Click on this if you are not sure how to apply a redirect in Lighttpd.

Click on this if you are not sure how to apply a redirect in LiteSpeed.

Click on this if you are not sure how to apply a redirect in IIS.

Click on this if you are not sure how to apply a redirect on other server languages than the ones mentioned here.

  1. Add the code below

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  2. Register the change of URL address (Apache)

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  3. Follow the instructions below

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
    Like Solutionbay?
    Also check out our other projects :)
    See all projects
  4. Use the RapidTables redirect code generator

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  5. Try the generator on aleydasolis.com

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  6. Via a text editor

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  7. Via the built−in function of Wordpress

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  8. Consult a developer

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
    Like Solutionbay?
    Also check out our other projects :)
    See all projects
  9. Follow the steps below

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  10. Follow the instruction below

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  11. Use the following line

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  12. Add the following line

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  13. Add the following line (Python)

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
    Like Solutionbay?
    Also check out our other projects :)
    See all projects
  14. Add this line to your controller action

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  15. Add this block entry in the server configuration file

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  16. Via Settings (Blogger)

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  17. Install the Redirection Wordpress plugin

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  18. Install the RSS Redirect & Feedburner Alternative plugin

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
    Like Solutionbay?
    Also check out our other projects :)
    See all projects
  19. Enter the following codes

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  20. Add the following line in .htaccess

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  21. Watch the video below

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  22. Enter the following sequence in .htaccess

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  23. Enter the code below

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
    Like Solutionbay?
    Also check out our other projects :)
    See all projects
  24. Enter the below−mentioned code

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  25. Enter the following code

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  26. Via routes.rb

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
  27. Read the support article below

    0
    (0)
    0
    (0)
    More infos
    User profile image
    Please loginto comment
Did you find a solution?
Yes No