wordpress site to html - moving pages without extensions ex: http://site.com/page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kush
    Confirmed User
    • Feb 2001
    • 3382

    #1

    wordpress site to html - moving pages without extensions ex: http://site.com/page

    I need help converting a small wordpress site with an unfavorable URL structure to a straight html site, while maintaining the original URL structure.


    There are several pages on the current wordpress based site that have urls like the following:

    http://site.com/page
    http://site.com/another-post
    http://site.com/no-trailing-slash-or-extention

    As an extra quirk, the original site redirects the www. version to non-www. and I have this in my .htaccess to maintain that redirect:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.site.com
    RewriteRule (.*) http://site.com/ [R=301,L]

    I'm stuck with how to handle this, can't find an easy answer anywhere.
    Thanks.
  • moeloubani
    Confirmed User
    • Dec 2007
    • 4235

    #2
    two things, if you want it to redirect to the www. version then go to your settings in WP and go to General and change those to www. where it has the location of the site (both places)

    tada now it redirects to original

    as to how you can make it so blabla.com/page goes to blabla.com/page.html you just need to make a folder called page so

    blabla.com/page/index.html

    that way when someone goes to blabla.com/page they will see only blabla.com/page but they will be at blabla.com/page/index.html

    good luck

    Comment

    • kush
      Confirmed User
      • Feb 2001
      • 3382

      #3
      Originally posted by moeloubani

      as to how you can make it so blabla.com/page goes to blabla.com/page.html you just need to make a folder called page so

      blabla.com/page/index.html

      that way when someone goes to blabla.com/page they will see only blabla.com/page but they will be at blabla.com/page/index.html

      good luck

      I tried that already, and when you visit blabla.com/page with the file/folder setup you described above, it redirects to http://blabla.com

      Your way may work, but I think I would have to tweak the RewriteCond in the .htaccess code. And I'm not sure what "tweak" to do the the .htaccess if this is the case.
      Last edited by kush; 07-26-2011, 09:59 AM.

      Comment

      • fris
        I have to go potty
        • Aug 2002
        • 55729

        #4
        if you have the same strucure setup in the xhtml version why do you need to rewrite?
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        My Latest Theme

        Comment

        • kush
          Confirmed User
          • Feb 2001
          • 3382

          #5
          Originally posted by fris
          if you have the same strucure setup in the xhtml version why do you need to rewrite?
          I bought the original website because it was established with some decent backlinks.

          The original site had a rewrite through wordpress to make the site go from http://www.site.com to http://site.com.

          To preserve the integrity of the backlinks to existing pages, I am making my new version of the site following this original pattern.

          I suppose I could do a permanent 301 redirect on those original existing inner pages to work around the problem.

          Comment

          • harvey
            Confirmed User
            • Jul 2001
            • 9266

            #6
            Originally posted by kush
            I bought the original website because it was established with some decent backlinks.

            The original site had a rewrite through wordpress to make the site go from http://www.site.com to http://site.com.

            To preserve the integrity of the backlinks to existing pages, I am making my new version of the site following this original pattern.

            I suppose I could do a permanent 301 redirect on those original existing inner pages to work around the problem.
            and why don't you simply use WP and keep the links as they are while getting advantage of the many features of WP?
            This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

            Comment

            Working...