Have a question on 301 redirects

by 15 replies
17
I have a wordpress site that I would like to convert to a html site...and I would like to know how I could create the proper 301 redirect in .htacces so that all .php posts pages point to the new html pages, within the same domain.

any suggestions would be very much appreciated.
#programming #301 #question #redirects
  • Is there anything destinctive about the pages you wish to redirect.
    Are they anything like www.yourdomain.com?p=123 or are they broken up by categories etc.

    Its all depends on your permalink settings.

    Sorry i can't hep you more..

    Bruce
    • [1] reply
    • There are no categories, just a series of post pages permalink structure is %postname%.php....

      I know that Host Gator has a redirect section , in which I once used to point a few stranded pages back to my site when I re-vamped one of my html sites...but it was only 2 pages that I needed to redirect...

      The idea I have for my current situation ( since my knowledge is limited in regards to htacces 301 redirects) would be to save all urls from the original site and then delete the word press files completely. Create and upload the new html files and then go to the redirect section in Hostgator and add each url from the old site individually to be repointed to the new html urls.....

      I suppose I could do this, but I have over 75 pages to redirect....I'm sure there is a more practical way , but I just don't know how to do it properly with a global 301 redirect code....

      I have read quite a bit on 301 redirects before I posted this question, but it seems there are always details missing that I need, most of these guys don't explain things for the layman...

      anyway if all else fails, I'll try to do it the long way, but it would be nice if I could take care of the whole thing through .htaccess as there are other sites that I would like to convert as well...
      • [1] reply
  • Banned
    [DELETED]

Next Topics on Trending Feed

  • 17

    I have a wordpress site that I would like to convert to a html site...and I would like to know how I could create the proper 301 redirect in .htacces so that all .php posts pages point to the new html pages, within the same domain. any suggestions would be very much appreciated.