How do I get rid of forum.php on the homepage? Anytime I go to talkjesus.com or www.talkjesus.com it adds forum.php at the end on the homepage. I don't want that. I already have forum home options in admin set to "index", but I want it solely www.talkjesus.com. No php file name at the end. My htaccess is below. My forum is installed in root folder, not /forum.
Code:
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.talkjesus\.com RewriteRule (.*) http://www.talkjesus.com/$1 [L,R=301] RewriteCond %{REQUEST_URI} !(xxxxx/|xxxxx/|cron) RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ dbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !^(xxxxx|xxxxx|clientscript|cpstyles|images|gallery)/ RewriteRule ^(.+)$ dbseo.php [L,QSA] ## Rewrites <ifmodule mod_rewrite.c> RewriteEngine on Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # Forum 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] RewriteRule ^.*$ /s/yourls-loader.php [L] RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # MVC RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA] </ifmodule> ## Expires <ifModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType text/css "access plus 1 year" ExpiresByType text/javascript "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" ExpiresByType application/x-javascript "access plus 1 year" </ifModule> #Deny attempts to view the Htaccess file. <Files .htaccess> Order allow,deny Deny from all </Files> <Files 403.shtml> order allow,deny allow from all </Files>
Comment