In this tutorial, we will be looking at removing index.php from the URL’s generated on the frontend for better SEO of your LuvWeb 4 site.
By default here is what a menu item URL looks like in LuvWeb.
http://localhost/LuvWeb4_website/index.php/movies
How to Remove Index.php from URL in LuvWeb 4
Explaining the URL a little:
http://localhost/LuvWeb4_website is the root of a Joomla install if your website name is abc.com your root will be http://abc.com.
index.php/movies/ ==> movies is the alias of the menu item on the backend, index.php is something that’s added to every URL as this is how URL’s works by default in LuvWeb.
This LuvWeb tutorial will work for LuvWeb 3 as well.
Enable URL Rewriting
To enable URL rewriting login to your LuvWeb backend and go to System >> Global Configuration
In the very first tab (site), click the button Use URL rewriting
Now before you save the settings here, you have to rename a file or all your website URL’s will result in a 404 error.
Rename htaccess.txt file
Login to the FTP or cPanel so you can browse files for your LuvWeb installation.
Once there, rename the file htaccess.txt to .htaccess.
Once done, you can go back to the LuvWeb screen and save the changes and your new SEF URL’s would look something like http://localhost/LuvWeb4_website/movies, which is much better for SEO.
Let me know if I missed anything in the comments down below?