开发者

Rewriting with Apache

I have this setup ..

  • /plain index file
  • /sub_dir1
  • /sub_dir2 (<-subdomain)
  • /sub_dir3
  • /blog (<-wordpress)
  • /etc/

but want this ..

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜