SEF, .htaccess, mod_rewrite & 404 messages

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

Moderator: General Support Moderators

thewayneson
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Sep 23, 2008 3:29 am

SEF, .htaccess, mod_rewrite & 404 messages

Postby thewayneson » Thu Mar 19, 2009 6:34 pm

Joomla_1.5.9.
Virtuemart 1.1.3.
Joomfish 2.0.2.
--------------
Macintosh OS X 10.5.6.
MAMP
Apache Version : 2.0.59
MySQL 5.0.41
PHP 4.4.8 & 5.2.6
eAccelerator 0.9.5.3 control panel
Apache Environment (GATEWAY_INTERFACE) CGI/1.1
apache2handler Loaded Modules mod_rewrite (yes)
----------------------------------------------------------
Settings:
Search Engine Friendly URLs - Yes
Use Apache mod_rewrite - Yes

Hello,
Thanks for the software and all your hard work.
I’m running on my localhost server and because I already have Joomla installed in the root, I am testing in a double sub directory: /MAMP/jvirtuemart/Joomla/

ie: .htaccess

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

RewriteBase/MAMP/Jvirtuemart/Joomla/ (NOTE:) I have also tried this without the MAMP.

# Options +FollowSymLinks (NOTE:) I have also tried this uncommented.
#
# mod_rewrite in use
RewriteEngine On

The main thing is: My home page always loads no problem: Address:
http://localhost:8888/MAMP/Jvirtuemart/Joomla/

But, when I turn on (Use Apache mod_rewrite) and "Search Engine Friendly URLs" only the home page works. All other pages give me a 404 Not Found message including Virtuemart.

I have checked in the Apache file that the mod_rewrite is uncommented and in my php settings it shows that the module is loaded. I have double checked all versions for compatibility or known bug releases and I seem to have all the latest versions with no reported issues. After a solid week of working on this I just can’t think of any place else to look or things to try. I have tried this test for Apache:
RewriteRule (.*) http://www.google.com/
with no luck.

I have read the posts here and find no one with such a basic problem expressed. I do not use sh404sef
or any other third party plug-ins or components. It just doesn't work in the basic Joomla install.

Any suggestions would be greatly appreciated.

Thanks

Wayne

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19317
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby dhuelsmann » Thu Mar 19, 2009 7:40 pm

Check all three options in the seo options section
Regards, Dave
Past Treasurer Open Source Matters, Inc.
http://www.kiwaniswest.org

thewayneson
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Sep 23, 2008 3:29 am

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby thewayneson » Fri Mar 20, 2009 2:08 am

dhuelsmann,

Thanks for the quick reply. Funny thing is it worked for a minute but not for all links and after the first 404 page not found happened, all the others stopped working. I cleared the cash but no matter what could not get things working again.

Wayne

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19317
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby dhuelsmann » Fri Mar 20, 2009 4:14 pm

Let's test to see if mod_rewrite is enabled on your server. Place only the following code in .htaccess:

Code: Select all

RewriteEngine On
Options +FollowSymLinks
Redirect /google.html http://www.google.com

Now point your browser to: http://www.yoursite.com/google.html
If it redirects you to Google - mod_rewrite is working.
If it gives you an error - mod_rewrite is not working.

Note: Replace "www.yoursite.com" with your actual web site domain.
Regards, Dave
Past Treasurer Open Source Matters, Inc.
http://www.kiwaniswest.org

thewayneson
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Sep 23, 2008 3:29 am

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby thewayneson » Fri Mar 20, 2009 5:37 pm

dhuelsmann,

Thanks again,

Yes I had done that with no response. At this point after reading the debate between users and Google, and the fact that I'm having so much troube getting this to work, I may just not use SEO.

Link to Google artical on blog:
http://googlewebmastercentral.[URL banned]. ... -urls.html

And the debate here on Joomla:
viewtopic.php?f=544&t=366842

Thanks

Wayne

ldigital
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Oct 28, 2008 6:03 pm
Contact:

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby ldigital » Sat Mar 21, 2009 3:22 pm

I'm getting the exact same problem. I really want to get this working. I tried testing the mod rewrite, and it does go to google when I put http://www.yoursite.com/google.html

What should I do?

Any help would be greatly appreciated ;)

lexthoonen
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Feb 21, 2006 10:06 am
Location: Agaete, Gran Canaria

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby lexthoonen » Sun Mar 22, 2009 4:44 pm

dhuelsmann wrote:Let's test to see if mod_rewrite is enabled on your server. Place only the following code in .htaccess:

Code: Select all

RewriteEngine On
Options +FollowSymLinks
Redirect /google.html http://www.google.com

Now point your browser to: http://www.yoursite.com/google.html
If it redirects you to Google - mod_rewrite is working.
If it gives you an error - mod_rewrite is not working.

Note: Replace "www.yoursite.com" with your actual web site domain.


Well, the google trick works, so i got mod rewrite working. Joomla still produces 404 pages... Any ideas?

ldigital
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Oct 28, 2008 6:03 pm
Contact:

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby ldigital » Mon Mar 23, 2009 2:09 pm

I just realized what I was doing wrong. I forgot to add the dot in front of the .htaccess file when renaming it from htaccess.txt :-[

It works great now ;D

Anyone else who is having the sef problem, check to make sure there is a dot infront of the htaccess file when you rename it ;)

lexthoonen
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Tue Feb 21, 2006 10:06 am
Location: Agaete, Gran Canaria

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby lexthoonen » Mon Mar 23, 2009 2:46 pm

I got it working by usin a different .htaccess file, might be the default one (as the one I had probably wasn't)...

handy andy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 109
Joined: Fri Aug 06, 2010 1:56 pm

Re: SEF, .htaccess, mod_rewrite & 404 messages

Postby handy andy » Mon Jan 10, 2011 6:39 pm

ldigital wrote:I just realized what I was doing wrong. I forgot to add the dot in front of the .htaccess file when renaming it from htaccess.txt :-[

It works great now ;D

Anyone else who is having the sef problem, check to make sure there is a dot infront of the htaccess file when you rename it ;)


You Genius, Upgrade immediatley to Joomla Master in my book !

Thank You, a simple . and everything works. Yippeeee


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

Who is online

Users browsing this forum: No registered users and 4 guests