SEF not working (404 - Component not found)

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

Moderator: General Support Moderators

modhumiah
Joomla! Intern
Joomla! Intern
Posts: 56
Joined: Wed Feb 24, 2010 2:14 am

Re: SEF not working (404 - Component not found)

Post by modhumiah » Mon May 17, 2010 7:53 pm

Is there no extensions for joomla that can give sef like wordpress. I like wordpress SEF functionality But I love joomla more that wordpress because of its vast amount of extensions and functionalities. I just need this SEF sorted. Getting too many 404 pages after I have moved for sef404 extenstion to joomla default sef. Joomla team should deeply look into this issue.

sixfootstudio
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun Jun 20, 2010 8:02 pm

Re: SEF not working (404 - Component not found)

Post by sixfootstudio » Tue Jul 13, 2010 8:35 pm

Seriously? Is there no "one" definitive answer to this problem? It seems there are too many people experiencing this.

Please, I'd appreciate some help with this too. I have my site in a Subdomain and some of the alias link work (don't know how) and other newly created links dont.

Many thanks,
James

User avatar
Leftfield
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4439
Joined: Fri Dec 08, 2006 3:33 am
Contact:

Re: SEF not working (404 - Component not found)

Post by Leftfield » Tue Jul 13, 2010 10:30 pm

Why you didn't searched this Forum? It is full of recommendations and how to. Review: http://extensions.joomla.org/extensions ... gement/sef
SEO & SEM Manager https://vujosevic.com/

qoonpooka
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Nov 02, 2010 12:50 pm

Re: SEF not working (404 - Component not found)

Post by qoonpooka » Tue Dec 21, 2010 9:18 pm

I have tried everything in this thread, including installing ARTIO JoomSEF 3.7.6.

The 404 page just will not quit:

http://50.22.144.62/~aswm/

Even with SEO turned off I get 404 pages (sometimes it's a different 404 page). Any advice is appreciated at this point. I'm completely stumped.

User avatar
Leftfield
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4439
Joined: Fri Dec 08, 2006 3:33 am
Contact:

Re: SEF not working (404 - Component not found)

Post by Leftfield » Tue Dec 21, 2010 10:23 pm

Can you give us more details what you have tried exaclty? Did you renamed htaccess.txt into .htaccess?
SEO & SEM Manager https://vujosevic.com/

qoonpooka
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Nov 02, 2010 12:50 pm

Re: SEF not working (404 - Component not found)

Post by qoonpooka » Wed Dec 22, 2010 1:43 pm

Leftfield wrote:Can you give us more details what you have tried exaclty? Did you renamed htaccess.txt into .htaccess?
htaccess.txt has been renamed, I've uncommented the RewriteBase line, I've installed JoomSEF 3.7.6.

The site almost works with SEF URLs off, (I'm still losing all my CSS on pages that aren't the frontpage, but one thing at a time, right?) but the moment I turn it on I'm getting 404.

User avatar
Leftfield
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4439
Joined: Fri Dec 08, 2006 3:33 am
Contact:

Re: SEF not working (404 - Component not found)

Post by Leftfield » Wed Dec 22, 2010 4:15 pm

SEO & SEM Manager https://vujosevic.com/

qoonpooka
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Nov 02, 2010 12:50 pm

Re: SEF not working (404 - Component not found)

Post by qoonpooka » Wed Dec 22, 2010 4:30 pm

Leftfield wrote:You should review this: http://docs.joomla.org/SEO#Fixing_Broke ... is_Enabled

Ah, sorry. Forgot to mention that one. $live_site was set to 'http://50.22.144.62/~aswm' as well.


EDIT: Hang on. configure.php's $live_site is now '' again.

Yep, cpanel refuses to make that change when I hit save. Time to do this the old fashioned way. Stand by...


EDIT2: Ah. Permission problem. Nice of cpanel to tell me. *sigh*


EDIT3: Okay, that change made things a lot worse...

404 Error is still happening, but I've confirmed that $Live_Site has been changed. I've now lost my template CSS entirely on everything to boot. None of the URLs are including the /~aswm/ anymore. I've tried adding the final / to $live_site and changing RewriteBase (in .htaccess) to /~aswm/ no visible effects. (Also cleared cache, you know, just in case.)

EDIT4: Also no luck with changing the RewriteBase to my document root directory.

User avatar
Leftfield
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4439
Joined: Fri Dec 08, 2006 3:33 am
Contact:

Re: SEF not working (404 - Component not found)

Post by Leftfield » Wed Dec 22, 2010 5:20 pm

Try with: RewriteBase /~aswm
SEO & SEM Manager https://vujosevic.com/

qoonpooka
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Nov 02, 2010 12:50 pm

Re: SEF not working (404 - Component not found)

Post by qoonpooka » Wed Dec 22, 2010 5:39 pm

Leftfield wrote:Try with: RewriteBase /~aswm
Unchanged. CSS completely absent, all front page links lead to 404, URLs from such links are missing the /~aswm/ (showing up as http://50.22.144.62/foo-bar-page)

I've verified that Apache, PHP and MySQL are the correct versions to meet spec. (2.2.17, 5.2.14 and 5.0.91, respectively).

I also tried this, which I found in an SEF troubleshooting guide just now:
SEF Guide wrote: 4. Verify Apache rewrite is working by adding this line to your .htaccess file:

RewriteRule (.*) http://www.google.com/
When I did this, the site continued to behave in the same manner and did not send me to google.

Do I need to be restarting apache when I mess with .htaccess?

And if not, it would seem that the issue is that Apache Rewrite isn't working on my server for some reason.

EDIT: Commented out the google bit. New symptom: The backend no longer functions. All of the images are broken and the menus have stopped responding. This is new since $live_site was changed.

qoonpooka
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Tue Nov 02, 2010 12:50 pm

Re: SEF not working (404 - Component not found)

Post by qoonpooka » Wed Dec 22, 2010 6:16 pm

Leftfield wrote:Try with: RewriteBase /~aswm
FIXED!!!

Okay, here's what worked for me:

- Switching $live_site back to '' (default) in configure.php.
- .htaccess has RewriteBase /~aswm (as Leftfield suggested)

I uninstalled Artio JoomSEF as well since it adds a bunch of junk to the site unless you pay for it.

SEF URLs are working just fine.

I'm guessing the RewriteBase line has to be very specific and if you have a /~user/ in your path, leave the last / off.

Man what a beast.

Leftfield, thank you for your time and work on this. It helped a lot!

User avatar
Leftfield
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4439
Joined: Fri Dec 08, 2006 3:33 am
Contact:

Re: SEF not working (404 - Component not found)

Post by Leftfield » Wed Dec 22, 2010 8:37 pm

I am so glad :)

Cheers and happy Joomling.
SEO & SEM Manager https://vujosevic.com/

munnibhai
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Jan 19, 2010 8:51 pm

Re: SEF not working (404 - Component not found)

Post by munnibhai » Fri Feb 04, 2011 3:42 pm

ok, so i got me SEF working this way (assuming joomla is installed in root directory)

In global configuration in administration pannel, turn all 3 radio buttons to on
rename htaccess.txt to .htaccess (make sure it is (DOT)htaccess)
uncomment reWriteBase On (in .htaccess file, mean remove "#" sign before reWriteBase On)

in configuration.php, find line saying
var $live_site = ' ';
and change it to
var $live_site = 'http://your-domain-name.com/'; (make sure to include "/" at the end of URL)

you are good to go...!

User avatar
mowrow
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Wed Feb 23, 2011 6:37 pm
Location: Dubai
Contact:

Re: SEF not working (404 - Component not found)

Post by mowrow » Thu Feb 24, 2011 11:22 am

hi there,

My developer from Enetspark and found the problem to be because the website is in a temporary sub-folder (not the root folder) so the solution to this was in .htaccess file where RewriteBase path was not correct there. The site is in /temp/site so he changed the RewriteBase command to:

RewriteBase /temp/site/

Hope it helps everyone :)
Mow Row
Mow Row (www.mowrow.com)

johnsopaul
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue Sep 27, 2005 1:55 am

Re: SEF not working (404 - Component not found)

Post by johnsopaul » Sun Jun 12, 2011 2:13 am

Hi, I have the same problem: If I select the home item on the menu I get 404 component not found.

I have joomla 1.5.23 subfolder and subdomain
I have tried all combinations of the 3 main suggestions here:
1. adding livesite (with/woithout trailing /)
2. RewriteBase /subdom
3. RewriteEngine On in both root and/or subdomain folders


if I switch on rewritebase I get a 500 server error
all other options lead to the dreaded 404
i've cleared cache - not cleared cache
no combination works
if i switch off SEO friendly urls the problem goes away

any more ideas

thanks
Paul
linux 2.6 php 5.2.5 mysql 5..0.18 apache 2.0 joomla 1.5.14

llldenlll
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jul 13, 2011 1:31 pm

Re: SEF not working (404 - Component not found)

Post by llldenlll » Wed Jul 13, 2011 1:35 pm

Peps if you tried absolutely everything just like I did and nothing is working make sure that htaccess.txt that you renamed into htaccess has (.) at the beginning a.k.a ".htaccess"

owallet
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Sep 15, 2011 1:04 pm

Re: SEF not working (404 - Component not found)

Post by owallet » Thu Sep 15, 2011 1:09 pm

" ... edit configuration.php as var $live_site = 'http://www.mysite.com' "


This is a great and recomended solution,
thank you so much.,

oaksu
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Jul 10, 2007 4:49 am

Re: SEF not working (404 - Component not found)

Post by oaksu » Tue Oct 25, 2011 11:56 pm

ALSO TRY THE FOLLOWING - WORKED FOR ME!

I was having the same issue and after trying all of the suggestions, I was still getting the 404 error.

I checked the hosting support site and they actually had instructions on extra settings you had to put in for this to work.

In my case, the site is hosted with Netregistry and you can see their instructions at:

http://www.netregistry.com.au/support/a ... endly-urls

So just check with your hosting to see if there are specific configurations are required.

mravac
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Oct 27, 2011 6:48 am
Contact:

Re: SEF not working (404 - Component not found)

Post by mravac » Thu Oct 27, 2011 7:07 am

I've been getting a 500 internal server error on a subdomain, root folders on all pages with except root.
I've followed $live_site and other tips here, but what really did the trick is to uncomment

RewriteBase /

I actually tried full sub-domain here first, then removed final backslash, then sub-domain, and I left only / and it worked.

So when in doubt, try this. ;)
Please read forum rules regarding signatures: http://forum.joomla.org/viewtopic.php?t=65

nhinzky
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Nov 02, 2011 11:56 am

Re: SEF not working (404 - Component not found)

Post by nhinzky » Wed Nov 02, 2011 2:28 pm

Hi guys,

I also have the same problem. I have a working joomla(1.5) in my root directory and when I try to install in a sub-directory(joomla 1.7 fresh installation) I got this error(404 - Component not found). I can't login to admin since it will display an 404 error.

I renamed the htaccess.txt to .htaccess and uncomment the RewriteBase but still no luck.

Can you help me on this please?

Thanks!!!

rodallen
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jan 30, 2012 10:09 am

Re: SEF not working (404 - Component not found)

Post by rodallen » Mon Jan 30, 2012 10:14 am

peev just saved my sanity 2 years after the post.

DOT htaccess may save many others untold time messing with various files.

Thanks!

User avatar
walczak
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Jun 04, 2012 9:54 am

Re: SEF not working (404 - Component not found)

Post by walczak » Fri Jun 29, 2012 10:25 am

sabrown9001 wrote::eek: If enabling SFE on your Joomla! 1.5.x installation causes "404 - Component not found" errors and your installation is not in the root of your domain, try this:

--> In YourDomain.com/YourFolderName edit htaccess.txt as follows:
------> uncoment RewriteBase
------> append YourFolderName right after the /. The complete line should read:
RewriteBase /YourFolderName
--> save your changes!
--> Rename htaccess.txt to .htaccess

Hope this helps! (It worked for me :) )
Works for me too (on Joomla! 2.5)
Thanks a lot mate!

adineh
I've been banned!
Posts: 21
Joined: Sat Sep 17, 2011 4:05 pm

Re: SEF not working (404 - Component not found)

Post by adineh » Tue Oct 09, 2012 7:07 am

hello my friends
i have a problem wit sef
i use utf-8 titles but when i on sef my links didnt work.
like: www.mydomain.com/گردشگری ایران

paul sproule
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Mar 25, 2013 3:39 am

Re: SEF not working (404 - Component not found)

Post by paul sproule » Mon Mar 25, 2013 3:47 am

SOLVED! At least for me.
I've spent hours trying to get SEF URL's active and working. I had all of the same error messages everybody has already disclosed. I went through a series of ordering to make sure there wasn't a specific order to the steps outlined above.
After almost giving up (but I didn't want to because our Google ranking is very low), I went to our hosting company. Our site is hosted by GoDaddy. I searched their help for SEF and found 4 hits pertaining to Joomla and activating SEF.

Here's what was very important not outlined in this Forum:

When making the change to htaccess.txt, they instruct you to login via the File Manager accessed via godaddy.com. Edit the htaccess.txt file and make the change of removing the #. Select all copy, then close (don't save or save - doesn't matter). Then click on "NEW" to create a new blank file. Paste in the code, then press save and AT THIS POINT NAME IT .htaccess

There must be some kind of file coding on GoDaddy. Up until this point, I had been downloading the htaccess.txt file and making the changes to it, then uploading it again. I've noticed in previous circumstances that the file types using an upload and file name change aren't coded properly, so this is no surprise to me that it worked.

Good luck.


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 1.5”