You can check if friendly urls work by going to https://yoursite.com/rewrite_test
if it says "Rewrite Enabled" you're good to go.
To disable friendly urls, go to core/config.php
and change friendly
from true
to false
.
Ensure a file named .htaccess
exists wherever Nameless is installed (typically public_html
or htdocs
), and that it contains these rules.
In order to use friendly urls on your v2 website, your web server has to allow the use of .htaccess
files and you have to have mod_rewrite
enabled.
If you're using a VPS or dedicated server, the following steps will enable mod_rewrite
and allow the use of .htaccess
files on your Debian or Ubuntu server.
/etc/apache2/sites-available/000-default.conf
, note this will differ if you are using SSL or a custom configuration</VirtualHost>
, add the line AllowOverride All
within a directory block, as follows (replace /var/www/html with the path to your Nameless installation):...
<Directory /var/www/html>
AllowOverride All
</Directory>
</VirtualHost>
sudo a2enmod rewrite && service apache2 restart
If you are using a web host, or you have followed the above steps and you are still not able to use friendly URLs, ensure that the Nameless .htaccess
file exists. .htaccess
files are usually hidden by default within web host file managers and on Unix systems, so you may have to enable hidden file view on your system.
Your .htaccess
file should exist and it should contain these rules.
Include the location blocks from this file into your nginx config file.