No announcement yet.

remove forum.php

  • Filter
  • Time
  • Show
Clear All
new posts

  • remove forum.php

    How do I get rid of forum.php on the homepage? Anytime I go to or 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 No php file name at the end. My htaccess is below. My forum is installed in root folder, not /forum.

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.talkjesus\.com
    RewriteRule (.*)$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]
    ## 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"
    #Deny attempts to view the Htaccess file.
    <Files .htaccess>
    Order allow,deny
    Deny from all
    <Files 403.shtml>
    order allow,deny
    allow from all
    [ Evidence & Prophecies Fulfilled : click ]
    .:. Unanswered Prayers? /read this\

  • #2
    Delete index.php

    Rename forum.php to index.php.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API


    • #3
      ...or you can redirect /forum.php to root.

      RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*forum\.(html|php)?\ HTTP/
      RewriteRule ^(.*)forum\.(html|php)?$$1 [R=301,L]


      Related Topics