Results 1 to 3 of 3

mod_rewrite not working on CentOS - VPS

This is a discussion on mod_rewrite not working on CentOS - VPS within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi, I am currently trying to install VBSEO on a VPS. Everything went smoothly. However mod_rewrite is not working. I ...

  1. #1
    Junior Member
    Real Name
    Amogh Chaphalkar
    Join Date
    Oct 2011
    Posts
    8
    Liked
    1 times

    mod_rewrite not working on CentOS - VPS

    Hi,

    I am currently trying to install VBSEO on a VPS. Everything went smoothly. However mod_rewrite is not working.

    I tried the example mentioned below. But it didnt work
    https://www.vbseo.com/support/kb_art...8220-EJLV-0315


    I have made the following changes to the httpd.conf file (Running CentOS)
    1) LoadModule rewrite_module modules/mod_rewrite.so is not commented
    2)My <Directory> for the webroot is as below
    <Directory />
    Options +Indexes FollowSymLinks +ExecCGI
    AllowOverride all
    Order allow,deny
    Allow from all
    </Directory>
    3) Have uplaoded the .htaccess file to the webroot.

    mod_rewrite is enabled and I am allowed to use .htaccess on the server. Since it is a VPS (Virtual Private Server) I have to do all the required changes. The VPS is running on Cent OS5


    Please help !!


    Thanks

    Amogh


  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,111
    Liked
    622 times
    Blog Entries
    4
    Please make sure you uploaded the vBSEO .htaccess file to your forum directory. It should be the directory where your vBulletin installation is located.


    If you have already uploaded the .htaccess file, please first try enabling RewriteBase within .htaccess file.
    In order to do so please find the following line within your .htaccess


    #RewriteBase /


    and replace it with


    RewriteBase /


    If you are using a folder for your vBulletin installation such as forum or forums you should use the following RewriteBase


    RewriteBase /forum/


    If this does not resolve your problem please make sure your host supports mod_rewrite and you are allowed to use .htaccess file on your hosting. In order to check if your host supports mod_rewrite please create a new .htaccess file with the following content and upload it to your vBulletin installation folder


    RewriteEngine on
    RewriteRule testpage\.html Google [R]


    Once the .htaccess file has been updated, enter the following into your browser:


    http://www.yoursite.com/testpage.html


    If this does NOT work, then mod_rewrite is either disabled or setup incorrectly. In this case you should contact your hosting provider and ask them to enable mod_rewrite and .htaccess usage on your account.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Your sever appears to be offline, as i can't reach it to see what it is doing.

    It's possible you aren't running apache and need different rules, or you are running apache and need to set the rewritebase directive.

Similar Threads

  1. [How to] Check if mod_rewrite is working for my site
    By Joe Ward in forum Troubleshooting
    Replies: 33
    Last Post: 09-16-2009, 06:05 PM
  2. Replies: 11
    Last Post: 11-20-2008, 06:23 PM
  3. mod_rewrite loaded, but not working
    By cwalton in forum Troubleshooting
    Replies: 5
    Last Post: 02-21-2006, 02:05 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
  •