2013-05-28, 11:08:01
(2013-05-28, 02:04:20)shawn_a Wrote: It should not only the path in your rewrite rule.
eg.
Code:RewriteRule /?([A-Za-z0-9_-]+)/?$ /getsimple/index.php?id=$1 [QSA,L]
So I need two htaccess files now? I moved all contents into /get-simple/, and here's the htaccess file:
Code:
RewriteBase /get-simple/
RewriteRule ^post/([^/.]+)/?$ index.php?id=index&post=$1 [L]
RewriteRule ^tag/([^/.]+)/?$ index.php?id=index&tag=$1 [L]
RewriteRule ^page/([^/.]+)/?$ index.php?id=index&page=$1 [L]
RewriteRule ^archive/([^/.]+)/?$ index.php?id=index&archive=$1 [L]
RewriteRule ^category/([^/.]+)/?$ index.php?id=index&category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ /get-simple/index.php?id=$1 [QSA]
#Allows .html extension for page links (used with Custom Permalink in admin settings)
RewriteRule /?([A-Za-z0-9_-]+).html$ /get-simple/index.php?id=$1 [QSA,L]
I'm getting a 403 currently if I don't enter the subdomain in the location bar.