Results 1 to 2 of 2

Help, what is the right htaccess, to direct to forum home file forum.php?

This is a discussion on Help, what is the right htaccess, to direct to forum home file forum.php? within the General Discussion forums, part of the vBSEO SEO Plugin category; guys, i have a problem my forum home file is forum.php i want www.domain.com is directed to the www.domain.com /forum.php ...

  1. #1
    Senior Member basketmen's Avatar
    Real Name
    richie
    Join Date
    Dec 2006
    Location
    SEO Specialist
    Posts
    173
    Liked
    0 times

    Help, what is the right htaccess, to direct to forum home file forum.php?

    guys, i have a problem

    my forum home file is forum.php

    i want www.domain.com is directed to the www.domain.com/forum.php









    i can do it when still using vbseo 3.1.0 before using this htaccess rule :

    RewriteRule ^$ forum.php









    but i cant use that rule again after using vbseo 3.2.0, because its looks like that rule conflict with this default vbseo 3.2.0 default htaccess in red :




    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On

    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /

    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]








    please help how is the correct rule so both rule not conflict (maybe joining them)





    i must found the answer, please help guys, if i cant found the answer maybe i need to open support ticket, it is better public now the answer, because a lot people using forum.php as a forum home
    Last edited by basketmen; 07-31-2009 at 06:09 PM.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Hello,

    you should add the same rewrite rules you used before + change the line you highlighted in red color with:
    Code:
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

Similar Threads

  1. Re-direct threads from old forum to new forum
    By len backus in forum General Discussion
    Replies: 5
    Last Post: 08-17-2008, 10:20 AM
  2. Description and keywords on home and forum home
    By Zagis in forum General Discussion
    Replies: 3
    Last Post: 07-29-2008, 03:27 PM
  3. Linkbacks on forum home and forum pages
    By tavenger5 in forum vBSEO Features Archive
    Replies: 3
    Last Post: 09-04-2007, 01:58 PM
  4. Replies: 2
    Last Post: 04-15-2007, 02:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •