"Best" 301 Redirect Method - HTML Site > Wordpress Site

4 replies
  • WEB DESIGN
  • |
Hey Warriors!

I've got an HTML site (Public Speaking, Seminar Training, Presentation Skills) that I'm redoing.

I created it DreamWeaver a zillion years ago and I'm redesigning by creating a theme with Artisteer and will use Wordpress as my CMS.

Now, there's not a lot of link juice to preserve from existing URLs, but for that and other reasons I want to do the "best" redirect method for this situation.

I COULD just make the permalinks %postname.htm& to match previous page URLs (right?).

But I could also set up an .htaccess file with a mod_rewrite rule to 301 redirect HTM or HTML pages to the new page - such as /page.htm > /page.php (right?).

Please share your experience with me; what have YOU done? What's YOUR opinion??

Thanks!!

David
#> #301 #301 redirect #html #method #redirect #site #wordpress
  • Profile picture of the author phpbbxpert
    When you use the permalinks it actually writes the redirect in the .htaccess with mod_rewrite. I would probably just use permalinks, then you wont have 301 headers from the redirects.
    {{ DiscussionBoard.errors[2863094].message }}
    • Profile picture of the author JustaWizard
      Originally Posted by phpbbxpert View Post

      When you use the permalinks it actually writes the redirect in the .htaccess with mod_rewrite. I would probably just use permalinks, then you wont have 301 headers from the redirects.
      Thanks for your reply; so you're suggesting the permalinks be set %postname.html% for the specific reason that no 301 is returned, is that correct?

      And what do you make of this - the existing pages are:
      domain.com/page.htm
      what if I made the permalink:
      %category%/%pagename.htm%
      Would the addition of the category, which would make the URL different, ruin the results?--that would, correct?

      Thanks!
      David
      {{ DiscussionBoard.errors[2863181].message }}
  • Profile picture of the author phpbbxpert
    I do not beleive a 301 is returned as it is just re-writing the address to the page.

    EDIT: I checked and there were no 301 headers with permalinks which is mod_rewrite

    Assuming your using WordPress, your permalink would look like this

    /%category%/%postname.htm%

    NOTE: I changed that to postname.

    Your HTML pages you would convert to WP pages and when posted would not have a category. WordPress knows this.
    So it would result in www.yoursite.com/postname.htm
    {{ DiscussionBoard.errors[2863288].message }}
  • Profile picture of the author SteveJohnson
    When you're replacing .htm pages with WP pages, you need to match the old page URL exactly. You will most likely need to modify the page slug that is generated after the page is initially saved.

    The proper format, if you insist on using 'category' in the URL, is:

    /%category%/%postname%.htm
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[2863904].message }}

Trending Topics