Rewriting with Apache
I have this setup ..
- /plain index file
- /sub_dir1
- /sub_dir2 (<-subdomain)
- /sub_dir3
- /blog (<-wordpress)
- /etc/
but want this ..
- /wordpress
- /sub_d开发者_JS百科ir1
- /sub_dir2 (<-subdomain)
- /sub_dir3
- /etc/
Is this possible with wordpress' rewrite rules etc? Any advice on the Apache rules?
Cheers, Jeremy
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ blog/index.php?/$1 [L]
Should rewrite everything which isn't a file into the blog folder.
精彩评论