Mod rewrite - Wordpress pages too - .html?

Discussion in 'Apache' started by dowjones, Mar 4, 2009.

  1. #1
    Hi,
    I just want to know if it is possible or not.
    I have a website with .html files. I want to start using Wordpress or maybe Joomla. But I want to keep all incoming links etc., and I dont want to do a 301. Is possible to make some kind of mod rewrite so that the pages created with wordpress will have the exactly same url as the old .html files (including a .html file extension)?

    I have read the sticky post, but I´m not sure I understood it.

    Thanks a lot (alot?) in advance.
     
    dowjones, Mar 4, 2009 IP
  2. mrdo

    mrdo Well-Known Member

    Messages:
    1,552
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    138
    #2
    that's very easy. you go to wordpress dashboard, click Settings -> Permanent link and insert what you want.
     
    mrdo, Mar 4, 2009 IP
  3. dowjones

    dowjones Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for answering. That sounds good.
     
    dowjones, Mar 4, 2009 IP
  4. dowjones

    dowjones Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I looked into what you said and found this text. Seems to be a problem if you dont have map/category-name between the domain and the filename. Like this seems to be a probem, www.sitexxxdsf.com/hello.html. But this would be ok, www.sitexxxdsf.com/hellopages/hello.html. Have I understood it right?


    "Using only %postname%
    If you use postname as the only element in your permalinks to create a structure such as example.com/post-title, the rewrite rules may make it impossible to access pages such as your stylesheet (which has a similar format) or the /wp-admin/ folder [is this true in WordPress 2.0+ versions?]. It's best to include some numeric data (e.g. the post ID or date) in the permalink to prevent this from happening. Additionally, WordPress v1.2.x requires the use of a date structure in order for some features, such as the calendar, to function properly. /%year%/%monthnum%/%day%/%postname%/ is always a good start.
    "
     
    dowjones, Mar 5, 2009 IP