View Single Post

Old 12-11-2007   #2 (permalink)
rallen
Junior Member
 
Join Date: Dec 2007
Posts: 3
rallen is on a distinguished road
Default .htaccess file on a subdirectory

I've added the free version to a folder on a site where I have esyndicat installed in the root. I thought others might want to know what I used in the folder's .htaccess file to get the article site to work properly. xoo being the directory I installed the article script in (no changes were made to the .htaccess file in the root where my esyndicat directory is):

Quote:
RewriteEngine on
RewriteBase /xoo
RewriteRule ^browse/(.*/)?index([0-9]*).htm browse.php?category_path=$1&page=$2 [QSA,L]

# View Article rewrite rule
RewriteRule ^articles/([^/]+)-([0-9]*)(/([0-9]*))?.htm view-article.php?id=$2&page=$4 [QSA,L]
RewriteRule ^articles/(.+)/(.*)-([0-9]*)(/([0-9]*))?.htm view-article.php?cat=$1&id=$3&page=$5 [QSA,L]

RewriteRule ^members/([a-zA-Z0-9_]+)(-([0-9])+)?.htm$ view-account.php?username=$1&page=$3 [QSA,L]
RewriteRule ^members/index([0-9]*).html$ members-list.php?page=$1 [QSA,L]

# Static custom pages
RewriteRule ^([a-zA-Z0-9_\-]+)\.html$ pages.php?page=$1
rallen is offline   Reply With Quote