Friendly URLs feature not working

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
artcharity1
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat Sep 26, 2009 5:36 pm

Friendly URLs feature not working

Post by artcharity1 » Mon Jul 22, 2013 4:24 am

I've just come back to Joomla! after a couple of years of little use, and I've upgraded to 3.1 from 1.5-ish. I can't seem to get the search engine friendly URLs to create themselves. All my pages have aliases; in Global Config, SEF URLs are turned on, and so is URL rewriting; my web server is Apache (although I don't know - in Joomla 3.1 - how to make sure mod_rewrite is on, or even if this is necessary). Yet the only URL my pages receive is of the /index.php?option=com_content&view... variety. The menus created on my pages link by SEF URLs and then fail to work, because the pages they try to link to don't exist. What am I failing to see? What do I need to fix?

If it's any help, I ran into a weird thing when I installed Joomla 3.1. I tried to assign an alias to one of my pages that I had used in my now-completely-deleted Joomla 1.5 site, and I was told I couldn't - that alias was already in use. Don't know if this means anything or nothing.

Thanks to anyone who can help.

 
User avatar
MaxLynam
Joomla! Intern
Joomla! Intern
Posts: 77
Joined: Wed Jan 19, 2011 4:59 am
Location: Olinda, Victoria, Australia
Contact:

Re: Friendly URLs feature not working

Post by MaxLynam » Mon Jul 22, 2013 4:30 am

sounds like you haven't got the htaccess.txt renamed to .htaccess - that might fix it.

Also, download Akeeba Admintools and install it ... it will do your basic URL rewriting and security setup for you ... but be careful with some of the settings ... always take a backup of a working htaccess file for rescue purposes :)

Hope that helps.
Max Lynam @MaxOnTheHill | Olinda, Melbourne, Australia | Joomla since 2005
Digital Marketing Consultant & Bootstrapped Website Builder - sitedev since 1993
{ http://www.maxlynam.com } { http://www.molehill.com.au }

artcharity1
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat Sep 26, 2009 5:36 pm

Re: Friendly URLs feature not working

Post by artcharity1 » Mon Jul 22, 2013 2:59 pm

Thanks for your quick reply, Max. But no luck so far.

I tried renaming htaccess.txt as .htaccess (after deleting the original .htaccess file) and the system errored out, whether I left the Options + FollowSymLinks line live or commented it out. The error message indicated the system thought I was using too old a version of PHP. I notice that the original, deleted version of .htaccess identified the version of PHP actually in use:

# Use PHP5.4 Single php.ini as default
AddHandler application/x-httpd-php54s .php

Would it be worth trying out to put this line into the new .htaccess file, or is there a chance it would bring my world to a crashing fiery end? I don't have any idea how this code works, so I thought I'd pass it by you before I gave it a try.

Also, I downloaded the Akeeba admin tools, as you suggested. Looks great. But (as fate would have it) the .htaccess maker is only part of the professional version. I'd be willing to hand over my 20 euros if I was sure this software would fix my problem, but I'm not willing to do it on spec. Any advice?

Thanks again.

User avatar
MaxLynam
Joomla! Intern
Joomla! Intern
Posts: 77
Joined: Wed Jan 19, 2011 4:59 am
Location: Olinda, Victoria, Australia
Contact:

Re: Friendly URLs feature not working

Post by MaxLynam » Mon Jul 22, 2013 11:49 pm

Ah ... Joomla requires php5.3 or higher I think ... so need to check that with your host.

Don't delete working htaccess files, just rename them, so you can restore them if you break things ;)

You can also try setting custom php.ini in your root to ensure you meet other requirements for J3.1, which I have sample script here: https://gist.github.com/MaxOnTheHill/3865313

Admintools is installed on all my sites by default, along with AkeebaBackup (both paid versions) ... it's just good practice and is exceptionally good insurance for the security and maintenance of your site, as well as helping with optimisation.

Having these of course won't help you if you have crappy cheap hosting, as regardless of what you do your site will always be insecure and run poorly, even if they have the correct version of php.

Hope that helps.
Max Lynam @MaxOnTheHill | Olinda, Melbourne, Australia | Joomla since 2005
Digital Marketing Consultant & Bootstrapped Website Builder - sitedev since 1993
{ http://www.maxlynam.com } { http://www.molehill.com.au }

artcharity1
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat Sep 26, 2009 5:36 pm

Re: Friendly URLs feature not working

Post by artcharity1 » Tue Jul 23, 2013 12:16 am

Thanks, Max. Actually, I've got a very good hosting company - Blue Host - and I am using PHP 5.4.16. That's why the error message I got was mystifying. The current .htaccess file flags the version of PHP being used (I pasted the code into my last message); the renamed htaccess.txt file does not; somehow, without the code from the original file, I kept getting an error message that the wrong version of PHP was being used. Don't know why.

Okay, I'll pay up for Akeeba admin tools and check out your sample script. I still feel I'm swimming in the dark, but let's see how far I get. Thanks.

 

Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”