Difference between revisions of "Set up your Rewrite Rules"
From ARK
(Created page with "The rules that you setup will be dependent on what your ARK's structure is like (in terms of modules, etc.) and also what you would like your persistent URLs to look like. Here ...") |
|||
Line 5: | Line 5: | ||
To access an item in micro_view using the following URL - http://www.yourark.com/view/cxt/ABC12_212 you could setup the following rule: | To access an item in micro_view using the following URL - http://www.yourark.com/view/cxt/ABC12_212 you could setup the following rule: | ||
− | RewriteRule view/([a-z]{3,})/([A-Z0-9]+_[0-9]+) micro_view.php?item_key=$1_cd&$1_cd=$2 | + | <pre> RewriteRule view/([a-z]{3,})/([A-Z0-9]+_[0-9]+) micro_view.php?item_key=$1_cd&$1_cd=$2 </pre> |
Latest revision as of 14:51, 21 May 2014
The rules that you setup will be dependent on what your ARK's structure is like (in terms of modules, etc.) and also what you would like your persistent URLs to look like.
Here are some examples:
To access an item in micro_view using the following URL - http://www.yourark.com/view/cxt/ABC12_212 you could setup the following rule:
RewriteRule view/([a-z]{3,})/([A-Z0-9]+_[0-9]+) micro_view.php?item_key=$1_cd&$1_cd=$2