N00b fighting with permalinks
-
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.
- The topic ‘N00b fighting with permalinks’ is closed to new replies.