View previous topic :: View next topic |
Author |
Message |
raderack -
Joined: 02 Sep 2003 Posts: 16
|
Posted: Sun Aug 12, 2007 7:40 pm Post subject: Need help to convert .htacess to rewrite rules in abss |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Aug 16, 2007 4:27 pm Post subject: Re: Need help to convert .htacess to rewrite rules in abss |
|
|
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 |
|
|
|