sinucello
Well-known member
Hi,
I`d like to move my rewrite rules from the .htaccess file in the XF document root to the virtual host configuration. If I just copy them, they don`t work. Can anybody tell me what I`d have to change to make it work? Here`s the content of my .htaccess:
thank you - all the best,
Sacha
I`d like to move my rewrite rules from the .htaccess file in the XF document root to the virtual host configuration. If I just copy them, they don`t work. Can anybody tell me what I`d have to change to make it work? Here`s the content of my .htaccess:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^forum/(.*)$ /$1 [R=301,NC,L]
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
thank you - all the best,
Sacha