Last week, I received an e-mail of one of my readers. He said he had problems with his URL’s which were all broken. He had read one of my articles, which didn’t solve the problem. The reason? He was trying to follow instructions that didn’t apply to him. To fix this, there’s this article on SEF URL’S.
In 90% of the cases when someone says his “links are suddenly all broken”, it leads to the same problem: an incorrect use of the built-in SEF URL functionality. In the case I mentioned before, the reader had even enabled the option without knowing what he was doing.
When you’ve got broken links after “clicking something in the back-end”, do yourself a favor, and do the following:
- Login to the ADMINISTRATOR PANEL
- Use the menu to navigate to SITE > GLOBAL CONFIGURATION. You’ll be taken to the ‘site’ tab, which is where you want to be.
Now, click on the image above. See the SEO settings to the right? There’s three options there; but the one that matters here is the “Use Apache mod_rewrite” option. If this is set to “YES” and your links are broken, ask yourself this question:
Did I remember to edit the htaccess.txt file in the root of my site?
If your links are broken, the answer to this question is probably “no”. Many people seem to be unaware of how important this is. Well, it is. Now, you’ve got two options. You either set the option back to “No”, or you edit the htaccess.txt file.
How do you do that?
It’s simple, really. Use FTP (or another tool) to navigate to the root of your website (the folder you installed Joomla! in). Look for a text file, named HTACCESS.TXT. See it? That’s your problem right there. So, let’s fix this problem.
Simply select the text file, and rename it. name the document .htaccess -> that’s DOThtaccess, in case you don’t see the dot. Once this very simple procedure is done, take a look at your site. Your URL’s should no longer be broken.
Still having problems? Leave a comment or contact me, and I might just help you out. Note: leaving a comment on this blog on how awesome I am is MANDATORY, just so you know.