• I have been using MT for a while and I set up WP on a sub-domain. Everything runs fine, but I would like to use mod_rewrite to change the archive links. Problem is I know almost nothing about Apache or how to use the .htaccess file.
    WP gives me the following permalink code to add to .htaccess:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^ archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^ /archives/category/?(.*) /index.php?category_name=$1 [QSA]

    Question #1 Do I add that “as is” to .htaccess?
    Question #2 Where do I place the .htaccess file? WP sits in an html directory of the subdomain (ie /sandbox/html).
    Question#3 Should I already have a .htaccess file? Currently I do not have one.

Viewing 4 replies - 1 through 4 (of 4 total)
  • make a file “.htaccess” in wordpad or any other decent text editor.
    copy the code in it.
    upload it where index.php resides.

    Thread Starter rdrysda

    (@rdrysda)

    I just get an Internal Server Error.

    You don’t want the amp; – each of those should be just an ampersand. If that doesn’t fix the 500 error then you can try adding IfModule tags to the .htaccess file – you can see an example of that in my blog along with advice on redirecting old MT pages to WP.

    I would really like to know why that worked too!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘N00b fighting with permalinks’ is closed to new replies.