0

I want to redirect write a re_write rule to handle article1 to blog/article1 where blog is a wordpress world that has blog/.htaccess too

Thanks

4

1 回答 1

0

Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory (parent dir of /blog):

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteRule ^(article1)/?$ blog/$1 [L,R,NC]
于 2012-05-07T13:29:59.637 回答