[wp-hackers] permalink bug?

Amit Gupta amit at igeek.info
Sat Oct 23 19:08:37 UTC 2004


Vinnie at http://blog.vinniegarcia.com/oldstuff/2004/10/16/wordpress-permalink-help/ describes a problem that he faced with the permalinks using WP 1.3alpha. He says that he tried to use the permalink structure
/%category%/%postname%/
but then the rewrite rules didn't let him access the admin area at
/wp-admin/
as it clearly labelled it as a category by name of wp-admin.

2 solutions are proposed by 2 people in the comments.
Aaron(http://www.technosailor.com/) says that it would be good to use the following rules instead:

RewriteBase /blog/
RewriteRule ^(About|Blog)/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ \ /wordpress/wp-feed.php?category_name=$2&feed=$3 [QSA]
RewriteRule ^(About|Blog)/category/?(.*) /index.php?category_name=$2 [QSA]
RewriteRule ^(About|Blog)/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ \ /wordpress/wp-feed.php?author_name=$2&feed=$3 [QSA]
RewriteRule ^(About|Blog)/author/?(.*) /index.php?author_name=$2 [QSA]
RewriteRule ^(About|Blog)/([0-9]+)?/?([_0-9a-z-]+)?([0-9]+)?/?$ \ /wordpress/index.php?p=$2&name=$3&page=$4 [QSA]
RewriteRule ^(About|Blog)/([0-9]+)/([_0-9a-z-]+)?/(feed|rdf|rss|rss2|atom)/?$ \ /wordpress/wp-feed.php?p=$2&name=$3&feed=$4 [QSA]
RewriteRule ^(About|Blog)/([0-9]+)/([_0-9a-z-]+)?/trackback/?$ \ /wordpress/wp-trackback.php?p=$2&name=$3 [QSA]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wordpress/wp-feed.php?feed=$2 [QSA]
RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ \ /wordpress/wp-feed.php?feed=$2&withcomments=1 [QSA]

while Peter(http://www.peterbailey.net/) suggests that the
/wp-admin/
could be ignored with a RewriteCond.

I thought that it would be best to bring this issue to notice of you guys so that it can be fixed.

-----
Amit Gupta

|| Canned!! -- my Atropine || iG:Syntax Hiliter v2.0 Preview ||
|| iGEEK.INFO || Free Nokia Ringtones || Online Gaming @ Games Planet || 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/hackers_wordpress.org/attachments/20041024/837e4a10/attachment.htm


More information about the hackers mailing list