I know, there are many FAQs on SEO in Joomla. I still want to point out the essential steps and related information here on Webkul:
Joomla has built-in SEO functionality (SEO stands for Search Engine Optimization). The SEO tab in global configuration (in administration backend) takes care of global Joomla SEO settings for your website.
The tricky part is enabling Search Engine Friendly (SEF) URLs. If you are wondering what are those good for, here’s an example:
A non-SEF URL:
The Joomla SEF version of the previous URL:
3rd party SEF extensions may display “friendlier” URLs, such as
now. Read More
These URLs look like static websites for Search Engine crawlers (which is good) and maybe easier to memorize and more relevant to your human visitors (especially the ones like the last example). Additionally, keywords in URLs get you a higher search engine positioning in results.
Step 1: Check SEF URL’S
There are a few requirements for SEF URLs to work properly (the other SEO configuration options work regardless you have SEF URLs enabled or disabled):
You need to run the Apache Web server.
You need mod_rewrite module on Apache. Most hosting companies have that module installed.
Furthermore, you need Apache configuration to allow .htaccess files.
You can easily check your Apache configuration (among other system settings) by going to System->System information and selecting the php info tab in your Joomla administration backend.
There’s an “Apache” section and a “loaded modules” subsection there. mod_rewrite should be listed among those modules.
If all went well, you’re ready for the next step.
Step 2: Configure SEF URLs and rename the htaccess.txt
This step requires a FTP client or a web file manager (such as cPanel’s File manager). That will allow you to rename your htaccess.txt and/or revert to non-SEf URL’s if something goes wrong.
All you have to do is:
Open your Joomla Administration and enter global configuration, select the SEO tab
Open your FTP client or the online file manager for your website, and rename the htaccess.txt file in your Joomla root folder to .htaccess (note that you MUST include the leading dot)
A note to Windows users: Explorer does not allow leading dot filenames.
To rename the file under Win32, you need to click Start->Run, then type CMD (this opens a command line when you hit OK)
then change dir to your local Joomla folder (e.g. cd “c:\easyphp\www\joomla” <ENTER>), and issue the following command:
ren htaccess.txt .htaccess
Switch back to your Joomla administration web browser window, click on “Yes” on the “Search Engine Friendly URLs” line, and push the “Save button“.
Click on Site->Preview website in the new window to check the results and you’re done.
If unsuccessful, go to step 3.
Step 3: I screwed up
Don’t worry! It happens all the time.
There is a great chance that you get 500 (Internal server) errors, if something does not work.
Make sure you have the .htaccess file (with the leading dot) in your Joomla root folder. You can also check the file’s content with your FTP client or file manager and see if the mambo header comments and the Apache directives are there (RewriteRule lines, etc)
If this is ok, your hosting provider could have the .htaccess overrides disabled, so you need to contact them. They may also have the override filename changed in Apache config.
Meantime, you need to get your website back online and working until those problems are solved.
Here’s how it’s done:
Open your file manager or FTP client, and use it to rename your .htaccess back to htaccess.txt
Next, open your configuration.php file (wich is also located in your Joomla root folder) and change the
$mosConfig_sef = ‘1’;
$mosConfig_sef = ‘0’;
Save the configuration.php and you’re back to non-SEF, but working URLs.