1.0.7, 1.0.8 404 errors using SEF URLs

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

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.
Locked
Mot
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Sep 03, 2005 11:19 pm

1.0.7, 1.0.8 404 errors using SEF URLs

Post by Mot » Sat Mar 04, 2006 5:18 pm

Upgraded to 1.0.7 a couple of weeks ago, I guess.  Was surprised to be informed by a visitor to my site tht she was receiving a 404; it was working fine for me and had been ever since the update to 1.0.7.  But she was getting:

My Website Name
We're sorry but the page you requested could not be found.
Return to site
error 404

Then I noticed that the bookmark I was using directed me to:
    http://www.my site.com/index.php

whereas she was typing
    http://www.my site.com

in her browser's address bar.  When I did the same, I got the 404, too.

I played around with a version of .htaccess I found here in the forums while still at 1.0.7, but found I had to disable SEF URLs in order to get the site to come up.  Then I noticed that 1.0.8 was available and so upgraded and put its .htaccess file in play.  Still the same -- SEF URLs have to be off to access the site.  I notice that my Who's Online component is intermittent, and when displaying the number of guests/visitors, it would appear all traffic to my site has evaporated.  Google Ads have also reverted to the state they were in when I first brought them up (hurricane relief public service ad only)

Information on this situation seems pretty convoluted.  I cannot determine what I must do to correct the issue.  Can someone please discuss the solution? 

The site is hosted at PowWeb running Apache 1.3.33.

Thanks.
Last edited by Mot on Sat Mar 04, 2006 5:26 pm, edited 1 time in total.
The soundtrack for your awesome life.
Girls Rock Radio
The finest contemporary Pop, Rock, and Alternative music from today's awesome All-Girl and Girl-Fronted Bands.

 
Apollo
Joomla! Ace
Joomla! Ace
Posts: 1091
Joined: Wed Jan 25, 2006 8:46 am
Contact:

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by Apollo » Sat Mar 04, 2006 10:33 pm

Could you show us the .htaccess.
http://www.provisionstudio.com - Professional webdesign and IT Services

Mot
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Sep 03, 2005 11:19 pm

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by Mot » Sat Mar 04, 2006 11:53 pm

Yes.  It is the one that ships with the 1.0.7 to 1.0.8 update.

##
# @version $Id: htaccess.txt 2368 2006-02-14 17:40:02Z stingrey $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
# Only use one of the two SEF sections that follow.  Lines that can be uncommented
# (and thus used) have only one #.  Lines with two #'s should not be uncommented
# In the section that you don't use, all lines should start with #
#
# For Standard SEF, use the standard SEF section.  You can comment out
# all of the RewriteCond lines and reduce your server's load if you
# don't have directories in your root named 'component' or 'content'
#
# If you are using a 3rd Party SEF or the Core SEF solution
# uncomment all of the lines in the '3rd Party or Core SEF' section
#
#####################################################

#####  SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented.  If you are running your Joomla/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this
# line.  For example, if your Joomla/Mambo is in a subdirectory called '/test/',
# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional - see notes##
#
#####################################################


##  Can be commented out if causes errors, see notes above.
Options FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On


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

# RewriteBase /


########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section


########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section
The soundtrack for your awesome life.
Girls Rock Radio
The finest contemporary Pop, Rock, and Alternative music from today's awesome All-Girl and Girl-Fronted Bands.

Mot
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Sep 03, 2005 11:19 pm

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by Mot » Sun Mar 05, 2006 12:18 am

Okay, I believe I have got the site working again.  Thanks Apollo for forcing me to post the .htaccess, which inspired me to actually read the silly thing.  :-[

It's working because I commented out the "Standard SEF Section" and un-commented the "3rd Party or Core SEF Section"  Now if someone could please give me the 411 on Standard vs 3rd Party or Core, I'd feel a lot better about what I've just done.

And by the way, WOW!  The site loads an order of magnitude faster than ever before!
The soundtrack for your awesome life.
Girls Rock Radio
The finest contemporary Pop, Rock, and Alternative music from today's awesome All-Girl and Girl-Fronted Bands.

User avatar
Takster
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Fri Feb 10, 2006 10:37 am

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by Takster » Tue Mar 07, 2006 7:51 am

lol, i would just like to add i was having a major headache today after a full install to 1.0.8, no SEF for me, even though i was just running a previous version of joomla wirh SEF enabled on that host...

???

Long story short, i end up here with a quick search for SEF issues, opened my eyes and read the .htaccess properly...
...and i realised i must comment out 'Options FollowSymLinks'...bang, im back in business.

;D

Sometimes i miss the most basic of instructions...i really have to pay more attention to the instructions.

:P  :-[

justinw
Joomla! Explorer
Joomla! Explorer
Posts: 268
Joined: Mon Sep 19, 2005 8:49 pm
Location: Empangeni, South Africa
Contact:

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by justinw » Tue Mar 07, 2006 7:57 am

Could some pls send me a .httaccess file or explain what I need to take out or replace? I'm also having the same problems in 1.0.8 with SEF.
Web Energy - Website Designs and Joomla Development in Empangeni, South Africa - http://www.webenergy.co.za

User avatar
Takster
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Fri Feb 10, 2006 10:37 am

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by Takster » Tue Mar 07, 2006 8:12 am

justinw wrote: Could some pls send me a .httaccess file or explain what I need to take out or replace? I'm also having the same problems in 1.0.8 with SEF.
What i did was change this part of the htaccess here:

##  Can be commented out if causes errors, see notes above.
Options FollowSymLinks


I commented it out like it says, to look like this instead:

##  Can be commented out if causes errors, see notes above.
#Options FollowSymLinks


And then it worked.

The line just below this section: 'Options FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.

justinw
Joomla! Explorer
Joomla! Explorer
Posts: 268
Joined: Mon Sep 19, 2005 8:49 pm
Location: Empangeni, South Africa
Contact:

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by justinw » Tue Mar 07, 2006 8:18 am

Yay I did what Mot said and it worked! Are you sure it's safe to do this? Hopefully nothing will go wrong!
Web Energy - Website Designs and Joomla Development in Empangeni, South Africa - http://www.webenergy.co.za

Mot
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sat Sep 03, 2005 11:19 pm

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by Mot » Tue Mar 07, 2006 2:34 pm

justinw wrote: Yay I did what Mot said and it worked! Are you sure it's safe to do this? Hopefully nothing will go wrong!
Justin, I don't think anything will go wrong, but I'll reiterate that I'd appreciate anyone who could comment on the difference between "Standard" and "3rd Party or Core" SEFs.  I always feel better knowing why I've done something that works.

I did continue to have apparent problems with the Who's Online module and so I started another thread  here.  The response I got was interesting if not somewhat discouraging.  But it was an answer that I was able to come to grips with.
The soundtrack for your awesome life.
Girls Rock Radio
The finest contemporary Pop, Rock, and Alternative music from today's awesome All-Girl and Girl-Fronted Bands.

User avatar
colin99
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 183
Joined: Tue Nov 22, 2005 6:35 am
Location: Victoria - Canada
Contact:

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by colin99 » Tue Mar 07, 2006 6:51 pm

I have played with the .htaccess (according to what I have read above) -- yet I still get
" You are not authorized to view this resource.
                You need to login."

on Mamblog URL's like:

http://www.mysite.com/content/view/321/

but not on URLs like -

http://www.mysite.com/content/view/338/156/

Why? Or does this not have anything to do with SEF?

Colin
Editor-Creator coffeecrew.com | dxer.ca | Coffeecrew.com and a whole bunch of neat websites - Joomla user since DAY 1!

User avatar
colin99
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 183
Joined: Tue Nov 22, 2005 6:35 am
Location: Victoria - Canada
Contact:

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by colin99 » Tue Mar 07, 2006 7:19 pm

fixed --

seems to be a "Mamblog" issue.

Moving all my "Mamblog" items to standard content items.
Editor-Creator coffeecrew.com | dxer.ca | Coffeecrew.com and a whole bunch of neat websites - Joomla user since DAY 1!

rickei
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Mar 28, 2006 9:57 pm

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by rickei » Tue Mar 28, 2006 9:59 pm

this solution has not workd for me. Anyone else still having problems. I have 9 other Joomla sites, but this is the only 1.0.8 one I have. what has been changed to make this so buggy.

kashbash
Joomla! Intern
Joomla! Intern
Posts: 56
Joined: Fri Dec 30, 2005 7:52 pm

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by kashbash » Tue Apr 11, 2006 6:32 pm

Try this

Replace this line with

Options FollowSymLinks



This 

Options +FollowSymLinks



I added + sign and it worked for me...withtou+ it doesnt...

Keeping backup of previous htaccess was a good choice.. ;) helped me compare what was working before

themhz
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Tue Feb 15, 2011 12:27 pm

Re: 1.0.7, 1.0.8 404 errors using SEF URLs

Post by themhz » Mon Jan 02, 2012 12:44 pm

i actualy commented out from "components/com_content/router.php" the following lines

//require_once(JPATH_COMPONENT.DS.'controller.php');
//require_once(JPATH_COMPONENT.DS.'helpers'.DS.'query.php');
//require_once(JPATH_COMPONENT.DS.'helpers'.DS.'route.php');

and everything seems to be working fine with sef. I am not sure if i did the correct thing or if i have any sideefects in the futre. But for now everything seems to be working.

 

Locked

Return to “Upgrading - 1.0.x”