Need help to convert .htacess to rewrite rules in abss

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
raderack
-


Joined: 02 Sep 2003
Posts: 16

PostPosted: Sun Aug 12, 2007 7:40 pm    Post subject: Need help to convert .htacess to rewrite rules in abss Reply with quote

Ok i need to known how to convert that htacess to abyss rewrite rules
Code:
# Ensuring that short hand "<?" won't start PHP parsing ...
php_flag short_open_tag off

# Turn off register_globals
php_flag register_globals 0

# Turn off magic_quotes
php_flag magic_quotes_gpc 0

RewriteEngine On
# RewriteBase /
RewriteRule ^archive/(.*)$ pivot/archive_dynamic.php?p=$1&%{QUERY_STRING}
RewriteRule ^category/([^/]*)(/.*)?$ pivot/archive.php?c=$1&%{QUERY_STRING}
RewriteRule ^entry/([0-9]*)(/.*)?$ pivot/entry.php?id=$1&%{QUERY_STRING}
RewriteRule ^tag/(w=[^/]*)/(t=[^/]*)/(.*)$ pivot/tags.php?$1&$2&tag=$3&%{QUERY_STRING}
RewriteRule ^tag/(w=[^/]*|t=[^/]*)/(.*)$ pivot/tags.php?$1&tag=$2&%{QUERY_STRING}
RewriteRule ^tag/(.*)$ pivot/tags.php?tag=$1&%{QUERY_STRING}
RewriteRule ^tags$ pivot/tags.php
RewriteRule ^tags/(.*)$ pivot/tags.php?$1&%{QUERY_STRING}


the folder is the root,or htdocs.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Aug 16, 2007 4:27 pm    Post subject: Re: Need help to convert .htacess to rewrite rules in abss Reply with quote

raderack,

You should create a new URL rewriting rule for each of the RewriteRule lines you have. As an example, the URL rewiritng rule corresponding to:

Code:
RewriteRule ^archive/(.*)$ pivot/archive_dynamic.php?p=$1&%{QUERY_STRING}


should be translated as a URL rewriting rule with the following paramters:
* Virtual Path Regular Expression: ^/archive/(.*)$ (note the added leading / slash).
* Redirect to: /pivot/archive_dynamic.php?p=$1 (note the leading / and the removal of &%{QUERY_STRING}).

Each RewriteRule should be converted using the two above notes (adding leading slashes and removing &%{QUERY_STRING}.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group