Tips & tricks & hacks: X3 Monday, 22 July 2024 @ 07:05:03

My special settings for Abyss Web Server, so that it emulates HTACCESS in order for X3 to run on Abyss.

(these are just notes to myself)

Although the below changes/hacks work for me, I make no guarantees as to your results... any disasters that occur are not my fault. Use at your own risk... do a backup before making changes to your own files.

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]


 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:



 Base Virtual Path:    /
 Virtual Path Regular Expression:    (.+)\.(html|json|xml|atom|rss)$
 Redirect to:    index.php?$1/
Aprelium Support



 Base Virtual Path:    /
 Virtual Path Regular Expression:    ^render/.
 Redirect to:    app/parsers/slir/index.php?$1



 Base Virtual Path:    /
 Virtual Path Regular Expression:    ^render/.
 (Conditions) Regular Expression:    ^(?)debug($|&)
 Redirect to:    app/parsers/slir/index.php?$1



 Base Virtual Path:    /
 Virtual Path Regular Expression:    ^(.*)/$
 Redirect to:    index.php?/$1/

HTML Entities Encoder/Decoder website used to encode & decode the above HTML-code to text

This page was last modified (timestamped): Tuesday, 18th June 2024 @ 17:43:54 EDT (America/Toronto) / UTC -04:00
Tuesday, 18th June 2024 @ 21:43:54 GMT (UTC)
6,229 unique visits © Copyright 2008-2024 by John Mark Motyer, CD [8.3.8]