Permalinks
-
Hi everyone. I have posted on this before and figured it out, but somehow I screwed up my permalinks when I switched computers and forget how to get them to work.
I want them to look as such: /archives/%day%/%postname%/
So I did that in the Option>Permalinks area. Then I recreated the .htaccess file and pasted the below code into it. Any thoughts as to what I am doing wrong? When I click on a permalink, I get an error message. Thanks!
RewriteEngine On
RewriteBase /blog/
RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /blog/wp-feed.php?category_name=$1&feed=$2 [QSA]
RewriteRule ^archives/category/?(.*) /blog/index.php?category_name=$1 [QSA]
RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /blog/wp-feed.php?author_name=$1&feed=$2 [QSA]
RewriteRule ^archives/author/?(.*) /blog/index.php?author_name=$1 [QSA]
RewriteRule ^archives/([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /blog/index.php?day=$1&name=$2&page=$3 [QSA]
RewriteRule ^archives/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/wp-feed.php?day=$1&name=$2&feed=$3 [QSA]
RewriteRule ^archives/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /blog/wp-trackback.php?day=$1&name=$2 [QSA]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /blog/wp-feed.php?feed=$1 [QSA]
RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /blog/wp-feed.php?feed=$1&withcomments=1 [QSA]
- The topic ‘Permalinks’ is closed to new replies.