views:

12

answers:

1

Hey all,

I have this setup ..

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

but want this ..

  • /wordpress
  • /sub_dir1
  • /sub_dir2 (<-subdomain)
  • /sub_dir3
  • /etc/

Is this possible with wordpress' rewrite rules etc? Any advice on the Apache rules?

Cheers, Jeremy

A: 
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.

Keyo
Keyo thank you!! The only other thing I added was a rule for the index file in root.RewriteRule ^index.php$ /blog/index.phpCheers!
Jeremy
No problem, welcome to stack overflow.
Keyo