Page 3 of 3 FirstFirst 1 2 3
Results 31 to 34 of 34
Like Tree1Likes

[How to] Check if mod_rewrite is working for my site

This is a discussion on [How to] Check if mod_rewrite is working for my site within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Originally Posted by marco1 Are you upload .htaccess in your forum root ? (/forum) Make sure you are upload it ...

  1. #31
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    4,012
    Liked
    13 times
    Quote Originally Posted by marco1 View Post
    Are you upload .htaccess in your forum root ? (/forum) Make sure you are upload it
    If a .htaccess is in /forums, and has the following entries, things are going to break.

    Code:
    RewriteEngine On
    RewriteBase /forum
    RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
    RewriteRule (.*) http://www.mydomain.com/forum/$1 [L,R=301]

  2. #32
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    Quote Originally Posted by Ace Shattock View Post
    If a .htaccess is in /forums, and has the following entries, things are going to break.

    Code:
    RewriteEngine On
    RewriteBase /forum
    RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
    RewriteRule (.*) http://www.mydomain.com/forum/$1 [L,R=301]
    In his rewrite cond URL is mydomain.com so I think the really htaccess rewrite cond is mydomain.com so I'm comment them because I think they are the problem

  3. #33
    Member
    Real Name
    dennis
    Join Date
    Sep 2009
    Location
    Amsterdam
    Posts
    31
    Liked
    0 times
    Quote Originally Posted by marco1 View Post
    In his rewrite cond URL is mydomain.com so I think the really htaccess rewrite cond is mydomain.com so I'm comment them because I think they are the problem
    and i can solve the problem if i removed those lines u are showing me ?
    i sorry but im not that good with English and a error is fast bye me


    oke i deleted the old htaccess
    added a blanco with only the text
    RewriteEngine On
    RewriteRule testpage\.html Google [R]
    this works so its enabled the rewrite works

    but if use the orginal htaccess again
    its giving me a error 404

    my forum is located at www.bullterrierforum/bullforums
    do i have to change the code i higlited in red ?
    this is the code i use now in my forum

    Code:
    # 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 /bullforums/
    
    #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|vbseo_sitemap)
    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]
    Last edited by dennisdet; 09-16-2009 at 05:45 PM.

  4. #34
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    The line with the red does not matter unless you remove the # infront. The # stands for a comment, so your server does not parse that.
    The Forum Hosting - Forum Hosting from the Forum Experts

Page 3 of 3 FirstFirst 1 2 3

Similar Threads

  1. Site Check Please
    By svtsnake03 in forum Critique Please
    Replies: 6
    Last Post: 05-29-2007, 09:41 PM
  2. How To Check- A Site droped or banned from Google.
    By Nneel in forum General Discussion
    Replies: 0
    Last Post: 01-11-2007, 04:52 AM
  3. mod_rewrite loaded, but not working
    By cwalton in forum Troubleshooting
    Replies: 5
    Last Post: 02-21-2006, 02:05 AM
  4. was working fine then happened to check the site
    By drex in forum Troubleshooting
    Replies: 3
    Last Post: 11-08-2005, 03:33 AM

Posting Permissions

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