![]() |
CMS Rewrite when CMS turned off So I turned the CMS off (wasn't doing any good anyway), So was wondering how to do a decent redirect where... Forum Home @ "http://yourdomain.tld/forums.php" is "http://yourdomain.tld/" Blogs @ "http://yourdomain.tld/blogs.php" is "http://yourdomain.tld/blogs" and all the other directories optimised around it.... So far my redirects look like Code: ExpiresActive On ExpiresDefault "access plus 1 seconds" ExpiresByType text/html "access plus 1 seconds" ExpiresByType image/gif "access plus 259200000 seconds" ExpiresByType image/jpeg "access plus 259200000 seconds" ExpiresByType image/png "access plus 259200000 seconds" ExpiresByType text/css "access plus 60480000 seconds" ExpiresByType text/javascript "access plus 21600000 seconds" ExpiresByType application/x-javascript "access plus 21600000 seconds" Header set Cache-Control "max-age=25920000, public" Header set Cache-Control "max-age=6048000, public" Header set Cache-Control "max-age=2160000, private" Header set Cache-Control "max-age=2160000, public, must-revalidate" Header set Cache-Control "max-age=1, private, must-revalidate" Header unset ETag FileETag None Header unset Last-Modified RewriteEngine On ### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED RewriteRule ^includes/(.*) index.php RewriteRule ^vb/(.*) index.php RewriteRule ^packages/(.*) index.php ### THIS IS THE ACTUAL REWRITE RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^/(index.php)?$ forum.php?%{QUERY_STRING} RewriteRule ^threads/.* showthread.php [QSA] RewriteRule ^forums/.* forumdisplay.php [QSA] RewriteRule ^members/.* member.php [QSA] RewriteRule ^blogs/.* blog.php [QSA] ReWriteRule ^entries/.* entry.php [QSA] RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA] |
| الساعة الآن 11:49 PM |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir