A friendly or clean URL is a short web address that simply redirects to a longer one. Benefits include making the web address easier to remember and improved search engine optimization (SEO). For example, example.com/index.php?route=/forum
could become example.com/forum
.
Once you've made sure to enable the Friendly URLs
option within the StaffCP -> Configuration -> General Settings
tab, you can check if it's working by going to https://yoursite.com/rewrite_test
and Nameless should respond with, "Rewrite Enabled." If not, proceed to troubleshoot for your host environment.
To disable friendly urls outside of the control panel, go to
core/config.php
and changefriendly
fromtrue
tofalse
.
Ensure a file named .htaccess
exists wherever Nameless is installed (typically public_html
or htdocs
), and that it contains these rules.
Use our webserver config which you can see here.
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.