vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Team: Hot or Not? Ready for Traffic Explosion? vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! vBSEO Helps Forum Earn $100/day from Google AdSense Discover the Power of "Long Tail Search" Crawlability Inc. Files for SEO Technology Patent
se sw

URL Rewrite Rules

This is a discussion on URL Rewrite Rules within the General Discussion forums, part of the vBulletin SEO Discussion category; Hello everyone, Unfortunately I am unable to post in the general rewrite section because my account does not show as ...

Go Back   vBulletin SEO Forums > vBulletin SEO Discussion > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-23-2008, 06:16 PM
Junior Member
 
Real Name: poppins
Join Date: Apr 2008
Posts: 1
URL Rewrite Rules

Hello everyone,

Unfortunately I am unable to post in the general rewrite section because my account does not show as a registered owner ( although I am an admin of a board which has bought and registered vbSEO ).

I am currently migrating the server from Apache2 to lighttpd ( 1.4.13 ) and am having some issues with rewrite rules. Although I have run searches on the Rewrite and Custom Rewrite threads for "lighttpd.conf", "url.rewrite", "lighty" and a few other search terms I've gotten no Joy.

The following are the apache rewrite rules we are currently using:

Code:
 21                 # Rewrite rules!
 22                 RewriteEngine On
 23 
 24                 RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?si    temap=$1 [L]
 25 
 26                 RewriteCond %{QUERY_STRING} !vbseourl=
 27                 RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
 28                 RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
 29 
 30                 RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
 31                 RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
 32 
 33                 RewriteCond %{REQUEST_FILENAME} !-f
 34                 RewriteCond %{REQUEST_FILENAME} !-d
 35                 RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
 36                 RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
And the following are rewrite rules I've found and implimented from google:

Code:
 8     # vbSEO stuff.
  9     url.rewrite-once = (
 10     "^/blogs/([-a-z0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)\.html(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&m    onth=$3&year=$2&day=$4",
 11     "^/blogs/([-a-z0-9]+)/([0-9]+)/([0-9]+)/(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&month=$3&year=$    2",
 12     "^/blogs/([-a-z0-9]+)/category/([,0-9]+)\.html(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&categoryi    d=$2",
 13     "^/blogs/([-a-z0-9]+)/arsiv\.html(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&displaymode=archive",
 14     "^/blogs/([-a-z0-9]+)/([-a-zA-Z0-9_]+)-([0-9]+)/yorum-([0-9]+)\.html(?:\?(.*))?" => "/blogs/viewblog.php    ?username=$1&entrytitle=$2&entry=$3&c=$4",
 15     "^/blogs/([-a-z0-9]+)/([-a-zA-Z0-9_]+)-([0-9]+)/(?:\?(.*))?" => "/blogs/viewblog.php?username=$1&entryti    tle=$2&entry=$3",
 16     "^/blogs/([-a-z0-9]+)/$(?:\?(.*))?" => "/blogs/viewblog.php?username=$1",
 17     "^/tags/([0-9]+)/(.+)$(?:\?(.*))?" => "/tags/index.php?tag=$1&page=$2",
 18     "^/tags/(.+)$(?:\?(.*))?" => "/tags/index.php?tag=$1",
 19     "^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
 20     "^(/(highslide|tags|xcache|geek|gars|stats|mert|serenity|cey|arcade|mysmiliesvb|admincp|modcp|clientscri    pt|cpstyles|images|sonstil|kirmizi|files|galeri|vampir|summer|avatars|attachments|custompics|customavatars)/    .*)$" => "$1",
 21     "^/(archive/.*)$" => "/vbseo.php?vbseourl=$1",
 22     "^(.*clear\.gif)$" => "$1",
 23     "^/(.+)\?(.*)$" => "/vbseo.php?vbseourl=$1&$2",
 24     "^/(.+)$" => "/vbseo.php?vbseourl=$1"
 25     )
While the rules seem to work okay, there are a number of places where they stop working. The first one reported was:

Quote:
14:07:01 <@Tuesday> Enturbulation.org Activism Forums <- white page?
14:08:34 <@Tuesday> all the /new/ pages are coming up white for me
I figured someone must have a set of rules that work with lighty, or can point me in the right direction?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
apache, lighttpd, lighty, rewrite

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
SEO rewrite rules help Quarterbore Custom Rewrite Rules 11 03-12-2008 12:45 PM
Anyone using Custom Rewrite Rules to rewrite OpenAds ad urls? echamberlain Custom Rewrite Rules 2 12-12-2007 06:24 PM
URL Rewrite Settings / Custom Rewrite Rules shanemcse General Discussion 0 03-04-2006 01:57 PM


All times are GMT -4. The time now is 02:44 AM.


Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.