Results 1 to 6 of 6

rewrite syntax for isapi_rewrite

This is a discussion on rewrite syntax for isapi_rewrite within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I had my rewrite rules fixed the other day here in the forums for vbSEO , and I just installed ...

  1. #1
    Member
    Real Name
    Oscar
    Join Date
    Mar 2008
    Posts
    32
    Liked
    0 times

    Question rewrite syntax for isapi_rewrite

    I had my rewrite rules fixed the other day here in the forums for vbSEO, and I just installed the sitemaps and the rewrite for my forum isn't working. I did notice the person who fixed the rules for me the other day did add in the rules for the sitemaps too, here is a copy:

    Code:
    RewriteEngine On
    RewriteRule ^/forum/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    However if I go to the link, I got a blank page. If I remove the rule and go to the page directly, the page shows up and I can login. So what changes do I have to make to make the rewrite work?
    Thanks
    -Oscar
    http://www.EasyMarketingForum.com/

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You DON'T have to modify rewrite rule for sitemap since you have vBSEO installed already (vBSEO has corresponding rewrite rule as well).

  3. #3
    Member
    Real Name
    Oscar
    Join Date
    Mar 2008
    Posts
    32
    Liked
    0 times
    I changed it back to what it before I changed it and it still wont load
    http://www.easymarketingforum.com/forum/vbseo_sitemap/
    However, if I visit http://www.easymarketingforum.com/forum/vbseo_sitemap I get redirected to the forum listing page
    Code:
    [ISAPI_Rewrite]
    # When hosting multiple sites on the same server, it is
    # recommended to  limit the rewrite rules to the domain(s)
    # where vBSEO is installed. Enable (remove '#' at the beginning
    # to activate) the following rule and replace 'easymarketingforum.com'
    # with your actual installation domain name.
    RewriteCond %{HTTP_HOST} .*easymarketingforum.com
    RewriteCond %{REQUEST_URI} !^/forum/(avatars|attachments|iconimages).*
    RewriteRule ^(.*\.(?:gif|swf.*|jpg|png|css|xml|js|htm|txt|zip))$ $1 [I,L]
    RewriteCond %{HTTP_HOST} .*easymarketingforum.com
    RewriteRule ^/forum/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{HTTP_HOST} .*easymarketingforum.com
    RewriteCond %{REQUEST_URI} !/forum/(admincp/|modcp/|clientscript/|cpstyles/|images/|search\.php).*
    RewriteRule ^/forum/(.+?)$ /forum/vbseo.php?vbseourl=$1 [L,QSA]

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times

  5. #5
    Member
    Real Name
    Oscar
    Join Date
    Mar 2008
    Posts
    32
    Liked
    0 times
    So it is necessary to type in the file name after the / I was thinking it would automatically pick up index.php and display it when goin to http://www.easymarketingforum.com/forum/vbseo_sitemap/
    Thank you.

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    You can also try to change last rewrite condition to:
    Code:
    RewriteCond %{REQUEST_URI} !/forum/(vbseo_sitemap/|admincp/|modcp/|clientscript/|cpstyles/|images/|search.php).*

Similar Threads

  1. Syntax for Custom Rewrite Rules
    By Joe Ward in forum Custom Rewrite Rules
    Replies: 33
    Last Post: 02-10-2011, 08:49 PM
  2. Changing Password Syntax Error
    By brand0n in forum Troubleshooting
    Replies: 1
    Last Post: 09-23-2007, 08:48 AM
  3. isapi_rewrite vBa Rewrite Rules
    By Shmee in forum Custom Rewrite Rules
    Replies: 5
    Last Post: 05-11-2006, 02:44 PM
  4. Syntax to write "Rewrite Rules"?
    By Basit in forum Custom Rewrite Rules
    Replies: 12
    Last Post: 10-19-2005, 04:02 PM

Posting Permissions

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