Results 1 to 3 of 3

Installed VBSEO, now one of my rewrites is not working...

This is a discussion on Installed VBSEO, now one of my rewrites is not working... within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteBase / Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^mywebsitehere\.com RewriteRule ^(.*)$ http://www.mywebsitehere.com/$1 [R=permanent,L] # Comment the ...

  1. #1
    Junior Member
    Real Name
    Nathan
    Join Date
    Feb 2006
    Posts
    6
    Liked
    0 times

    Installed VBSEO, now one of my rewrites is not working...

    Code:
    RewriteEngine On 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteBase /
     
     
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} ^mywebsitehere\.com
    RewriteRule ^(.*)$ http://www.mywebsitehere.com/$1 [R=permanent,L]
     
    
    # 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|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]
     
     
    RewriteRule ^(.*).aspx$ view.php?pg=$1 NO longer WORKING

    I had VBSEO installed a few years ago, with the same rewrite (RewriteRule ^(.*).aspx$ view.php?pg=$1) in my .htaccess, and for some reason this time something is going wrong.

    Any help would be greatly appreciated Been out of the game for a while, I seem to have forgotten a few things

  2. #2
    Senior Member
    Real Name
    Fabio
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    758
    Liked
    11 times
    Blog Entries
    1
    Hello Nathan,

    please try this rule:

    Code:
    RewriteRule ^(.*)\.aspx$ view.php?pg=$1 [L]

  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
    Please use this file instead....

    Code:
    RewriteEngine On
    
    RewriteRule ^(.*).aspx$ view.php?pg=$1 
    
    # REPLACE YOURDOMAIN WITH YOUR ACTUAL DOMAIN
    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]


    # REPLACE YOURDOMAIN WITH YOUR ACTUAL DOMAIN

Similar Threads

  1. CMS Rewrites not working
    By baseballslant in forum URL Rewrite Settings
    Replies: 2
    Last Post: 05-06-2010, 07:50 PM
  2. URL rewrites not working at all
    By 1938media in forum URL Rewrite Settings
    Replies: 3
    Last Post: 07-06-2009, 01:44 PM
  3. after rewrites from vbseo, some pages not working
    By RadarLaser in forum Troubleshooting
    Replies: 0
    Last Post: 01-22-2009, 05:07 PM
  4. Replies: 12
    Last Post: 03-15-2006, 09:27 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
  •