Yeah I did that, maybe that’s what’s I’m failing. I have 2 .htacces files, one in /var/www/ and other in /var/www/pys (this is my TI installation directory).
The main is:
RewriteEngine on
RewriteRule ^contact_us$ contact_us.html [NC]
RewriteBase /var/www/html/pys/
And the one in the installation is:
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
## You may need to uncomment the following line for some hosting environments,
## to use URL Alias you need to be running apache with mod_rewrite enabled.
##
# Options +FollowSymlinks
## Turn on URL rewriting
##
RewriteEngine On
## !IMPORTANT! You may need to uncomment the following line for some hosting environments,
## If your installation resides in a subdirectory, enter the name here also
##
RewriteBase /var/www/html/pys/
## Redirect index.php from url to prevent duplicate urls
##
RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^(.*?)index\.php[^/] /$1? [L,R=301,NC,NE]
RewriteCond %{THE_REQUEST} /index\.php [NC]
RewriteRule ^(.*?)index\.php(?:/(.*))?$ /$1$2? [L,R=301,NC,NE]
## Redirect Trailing Slashes If Not A Folder...
##
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
## Block all PHP files, except index
##
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} \.php$
RewriteRule !^index.php index.php [L,NC]
## Blacklisted folders
##
RewriteRule ^assets/downloads/(.*) not_found [L]
# Handle Front Controller...
##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L,QSA]
</IfModule>```