2013-05-30, 10:45:59
(2013-05-29, 23:33:14)shawn_a Wrote: In root
Code:RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_URI} =/
RewriteRule ^(.*)$ /getsimple/$1 [L]
In /getsimple
Code:...
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
-- For blog plugins
RewriteRule ^post/([^/.]+)/?$ /getsimple/index.php?id=index&post=$1 [L]
RewriteRule ^tag/([^/.]+)/?$ /getsimple/index.php?id=index&tag=$1 [L]
RewriteRule ^page/([^/.]+)/?$ /getsimple/index.php?id=index&page=$1 [L]
RewriteRule ^archive/([^/.]+)/?$ /getsimple/index.php?id=index&archive=$1 [L]
RewriteRule ^category/([^/.]+)/?$ /getsimple/index.php?id=index&category=$1 [L]
-- GS rule
RewriteRule /?([A-Za-z0-9_-]+)/?$ /getsimple/index.php?id=$1 [QSA,L]
And make sure your siteurl in settings does not have the subpath as recommended.
Then you can stick real static files and directories in root and they will work, just be careful about interfering with slug names. That is what the -f -d is, rewrite if not a actual file or directory name.
This gives you a nice clean site with
/staticfiles.html
/staticdirectories/
/getsimple
Your format gave me a 500 error. It seems moving both RewriteCond lines from below the blog rules to above them caused this. Just and FYI, as both of our files are the same content, just differently laid out.