URL Rewriting
|
<IfModule mod_rewrite.c>
# RewriteEngine enabled
RewriteEngine on
# RewriteBase (required for some hosts)
# If X3 is installed in root: RewriteBase /
# If X3 is installed in sub-directory x3: RewriteBase /x3
# RewriteBase /
# Rewrite any calls to html|json|xml|atom|rss if a folder matching * exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.+)\.(html|json|xml|atom|rss)$ index.php?$1/ [L]
# Rewrite any calls to /render to the X3 image resizer
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{QUERY_STRING} ^(?)debug($|&)
RewriteCond %{REQUEST_URI} render/
RewriteRule ^render/. app/parsers/slir/index.php?$1 [L]
# Rewrite routes to X3 application index.php if they are non-existent files/dirs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ index.php?/$1/ [L,QSA]
</IfModule>
|
|
Purpose |
Rule # |
Rule |
Rule settings |
Contributor |
URL Rewriting
These Abyss settings are for the X3 host, when the host's document root points to X3:
|
1
|
|
Base Virtual Path:
|
|
/
|
|
Virtual Path Regular Expression:
|
|
(.+)\.(html|json|xml|atom|rss)$
|
|
Redirect to:
|
|
index.php?$1/
|
|
Aprelium Support
|
2
|
|
Base Virtual Path:
|
|
/
|
|
Virtual Path Regular Expression:
|
|
^render/.
|
|
Redirect to:
|
|
app/parsers/slir/index.php?$1
|
|
3
|
|
Base Virtual Path:
|
|
/
|
|
Virtual Path Regular Expression:
|
|
^render/.
|
|
(Conditions) Regular Expression:
|
|
^(?)debug($|&)
|
Redirect to:
|
|
app/parsers/slir/index.php?$1
|
|
4
|
|
Base Virtual Path:
|
|
/
|
|
Virtual Path Regular Expression:
|
|
^(.*)/$
|
|
Redirect to:
|
|
index.php?/$1/
|
|