The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

301 redirect (5 posts)

  1. febwa1976
    Posted 10 years ago #

    I am moving one of my sites and changing the permalink structure at the same time using the Angsuman plugin. It works perfectly and google etc has followed the 301 to the new site and structure.

    I am now looking for a 301 redirect rule for my htaccess file which will redirect /category/ as is described below as the plugin is not designed for this part.

    http://www.mysite.com/blog/index.php/category/ which is my old site to this http://blog.mysite.com/category/ which is my new site.

    Can somebody help me with the correct rule structure.

  2. RewriteRule ^/blog/index.php/category/(.*)$ http:://blog.mysite.com/category/%1 [R,L]

    Argh. Remove the extra colon from http:: above. I added it to prevent this forum from hosing up the rule.

  3. febwa1976
    Posted 10 years ago #


    Many thanks for this. I have not yet been able to get it to work and have been trying to put it at different places in the htaccess file. I am continuing to try.

    1. Should this come before or after the standard htaccess data which is generated by WP?
    2. Is there anything else which may be obvious to get this to work (clearing caches etc).

  4. 1. After RewriteEngine on but before the RewriteCond bits.

    2. Not that I can think of, no.

  5. febwa1976
    Posted 10 years ago #

    Dang - still will not work - perhaps current host does not allow these rewrite rules?

Topic Closed

This topic has been closed to new replies.

About this Topic