WordPress.org

Forums

Redirect, Permalink and .htaccess (6 posts)

  1. www.onlinecasinoselite.com
    Member
    Posted 8 years ago #

    Hi,

    I am using WP 1.5 and have a line redirecting an old static page (/somedir/myfile.html) to a permalink type address (www.mysite/newvirtualdir/slugname) but I get a strange URL returned - something link http://www.mysite/newvirtualdir/slugname?category_name=somedir/myfile.html=myfile.html&page=

    I am guessing this is due to the permalink rules. How do I fix this?

  2. jaredquinn
    Member
    Posted 8 years ago #

    Can you provide the details of your redirect? (ie snippet from your .htaccess or something?)

  3. www.onlinecasinoselite.com
    Member
    Posted 8 years ago #

    Sure - It's

    Redirect /Management/HRM/British_HRM.html /management/current-hrm

    The second part is based on a permalink.

  4. www.onlinecasinoselite.com
    Member
    Posted 8 years ago #

    Hi - I hope that is enough information - let me know if you need any more clarification! Thanks again!

  5. Michael_
    Member
    Posted 8 years ago #

    Try this one:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^management/hrm/british_hrm\.html$ /management/current-hrm [L,R=301]
    </IfModule>

  6. babylonian
    Member
    Posted 8 years ago #

    This helped solve my problem with permalink redirections ;)!

    Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Topic