Announcement

Collapse
No announcement yet.

remove forum.php

Collapse
X
 
  • 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 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>
    [ 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 - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


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

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

      Comment

      Related Topics

      Collapse

      Working...
      X