KatieH
Member
Hi, I don't have much knowledge with .htaccess file and re-write rules and 2 days ago after we launched our beta project public http://www.nihonomaru.com/ we ran into an issue where the rules conflicts with my forum folders and my images on my forum were down.
The dev I work with tried something and fixed it but i am not sure if these rules are written correctly. He is using cake framework. http://book.cakephp.org/2.0/en/installation/url-rewriting.html
If someone is experience, do you see any issue with these rules?
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/forum/(.*)
RewriteCond %{REQUEST_URI} !^/cache/(.*)
RewriteCond %{REQUEST_URI} !^/cache/(.*)
RewriteCond %{REQUEST_URI} !^/chan/(.*)
RewriteCond %{REQUEST_URI} !^forum\.nihonomaru\.com
RewriteCond %{HTTP_HOST} ^(www\.)?nihonomaru.com$
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{HTTP_HOST} ^(www\.)?nihonomaru.com$
RewriteRule (.*) app/webroot/$1 [L]
#RewriteRule ^$ app/webroot/ [L]
#RewriteRule (.*) app/webroot/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
The dev I work with tried something and fixed it but i am not sure if these rules are written correctly. He is using cake framework. http://book.cakephp.org/2.0/en/installation/url-rewriting.html
If someone is experience, do you see any issue with these rules?
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/forum/(.*)
RewriteCond %{REQUEST_URI} !^/cache/(.*)
RewriteCond %{REQUEST_URI} !^/cache/(.*)
RewriteCond %{REQUEST_URI} !^/chan/(.*)
RewriteCond %{REQUEST_URI} !^forum\.nihonomaru\.com
RewriteCond %{HTTP_HOST} ^(www\.)?nihonomaru.com$
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{HTTP_HOST} ^(www\.)?nihonomaru.com$
RewriteRule (.*) app/webroot/$1 [L]
#RewriteRule ^$ app/webroot/ [L]
#RewriteRule (.*) app/webroot/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>