vBulletin and Ionics Isapi Rewrite

Topics: Developer Forum, User Forum
Aug 19, 2008 at 6:06 PM
Hi guys.

I wonder if anyone can help me. I have got vBulletin and would like to get the vbSEO url rewrites working however they only provide configuration examples for htaccess and the paid IIS Isapi Rewrite. Could someone possibly help me by pointing me in the right direction of modifying the following to work with the Ionics version.

RewriteEngine On

RewriteCond %{HTTP_HOST} .*yourdomain.com
RewriteRule ^/forums/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ /forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

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

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

-----------
or this version - i'm guessing both would work when converted
-----------

[ISAPI_Rewrite]

RewriteCond Host: (?:www\.)?betconnections.com
RewriteRule ^/forums/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond Host: (?:www\.)?betconnections.com
RewriteCond URL ^/(?!avatars|attachments|iconimages).*
RewriteRule ^([^\?]*\.(?:gif|swf.*|jpg|png|css|xml|js|htm|txt|zip)(?:\?(.*))?)$ $1 [I,L]

RewriteCond Host: (?:www\.)?betconnections.com
RewriteCond URL ^/forums/(?!admincp/|modcp/|clientscript/|cpstyles/|images/|search\.php).*
RewriteRule ^/(.+?)(?:\?(.*))?$ /vbseo.php [L]


Any help would be GREATLY appreciated!!
If you live in the UK and can get it working I'll buy you a pint! ;)

Cheers,
Jason
Coordinator
Aug 21, 2008 at 1:33 PM

you need something like this:

h
RewriteCond  %{HTTP_HOST} (?:www\.)?betconnections.com
RewriteRule ^/forums/((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ /vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond  %{HTTP_HOST}  (?:www\.)?betconnections.com
RewriteCond %{URL} ^/(?!avatars|attachments|iconimages).*
RewriteRule ^([^\?]*\.(?:gif|swf.*|jpg|png|css|xml|js|htm|txt|zip)(?:\?(.*))?)$ $1 [I,L]

RewriteCond  %{HTTP_HOST} (?:www\.)?betconnections.com
RewriteCond %{URL} ^/forums/(?!admincp/|modcp/|clientscript/|cpstyles/|images/|search\.php).*
RewriteRule ^/(.+?)(?:\?(.*))?$ /vbseo.php [L]

The RewriteCond that uses %{HTTP_HOST} is necessary only if you are sharing a server with other domain names. It is useful to distinguish incoming URL requests for http://betconnections.com/whatever from http://childrensPlayhouse.com/something . I hope you know what I mean. You need that RewriteCond statement only if you are sharing an IIS Website among multiple domain names.

When you have tried IIRF, show me the logs say...bbbbbbb

Sep 18, 2008 at 8:27 AM

Hi,

 

I am also facing problem in using Ionics Isapi Rewrite with vBulletin.

Rules given in previous post is not working for me.

Any help would be greatly appreciated ....

 

Thanks

Coordinator
Oct 1, 2008 at 10:52 PM
I don't know vbulletin, don't have it, cannot test it!
sorry!
Can all you vbulletin people help each other?