开发者

Rewriting with Apache

开发者 https://www.devze.com 2023-01-11 03:32 出处:网络
I have this setup .. /plain index file /sub_dir1 /sub_dir2 (<-subdomain) /sub_dir3 /blog (<-wordpress)

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

精彩评论

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