WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess 301 help (2 posts)

  1. startribe
    Member
    Posted 7 years ago #

    I am hoping someone might be able to help me with this issue. I have converted some of my regular html pages into WordPress pages for integrated SEO management purposes, and I have created a 301 redirect in my root .htaccess file. Here is an example command:

    Redirect 301 /store/b_rc_wfigthing.php http://victorybelt.com/store/couture-wrestling-fighting/

    When I browse a link, "b_rc_wfighting.php", to the old location from victorybelt.com/store/index.php the redirect works fine. But when I enter in the full address google uses, http://victorybelt.com/b_rc_wfighting.php, the redirect doesn't work.

    I am also using permalinks, as you may notice in the targeted redirect link. Here is what my current .htaccess file looks like:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    # BEGIN Redirects_set on 5-12-07
    Redirect 301 /store/b_bj_mma.php "new source link"
    Redirect 301 /store/b_eb_master.php "new source link"
    Redirect 301 /store/b_eb_twister.php "new source link"
    etc
    etc
    # END Redirects

    OK, so any help would be greatly appreciated.

    Sincerely,
    Orion

  2. startribe
    Member
    Posted 7 years ago #

    I am totally perplexed right now. I tested all of the other links I updated, and they work. I than continued with more testing on the Randy Couture link, and it actually will randomly work some times... wow! I have tried it on several different computers, different browsers, custom links created in external html pages, through alternate google links, and still the same results... and this isonly from the Randy Couture link. It must be some sort of a glitch on the server... I don't know.... OMG, I just bounced over to try another test before sending this post and I noticed a typo in the link! Talk about embarrassing. Notice how I spelled fight in the wfigthing.php redirect. The several times that the redirect worked was when I was coping and pasting from the browser... good lord. Maybe this thread should be sent to a nooB section. Mental note, trouble shoot rule #1, proof read with a fine tooth comb.

Topic Closed

This topic has been closed to new replies.

About this Topic