The Joomla! Forum ™






Post new topic Reply to topic  [ 17 posts ] 
Author Message
PostPosted: Sun Aug 31, 2008 2:38 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 15, 2008 7:13 am
Posts: 24
Hi,

Joomla (1.5.6) has been working fine with all 3 SEO settings ON in my website. The server had the PHP running as an Apache mod. After I got my server changed to be able to use FastCGI, though perhaps not related to FastCGI, I get 404 error with some pages, and SEF URLs are not displayed. I have been unsuccessfully trying different SEO Settings and changing .htaccess so far, following instructions from this forum.

This is what I found:
Regardless of the SEO setting, articles which are 'uncategorised' eg. pages like about.html always work. When 'Search Engine Friendly URLs' & 'Use Apache mod_rewrite' are ON the SEF URLs are displayed correctly, eg.
http://www.mysite.com.au/about.html
And, when these settings are OFF, the same URL is diplayed, as expected:
http://www.mysite.com.au/index.php?opti ... &Itemid=65

However, articles that have been assigned to various Sections and Categories do not display the SEF urls regardless of these settings. They are always like: http://www.mysite.com.au/noideas&catid= ... &Itemid=70. And, with these 2 SEO settings ON, these pages return with 404 error. I have also tried with a clean install of Joomla and the sample pages like "Welcome to Joomla" always have 404 error.

When these two settings are OFF, these pages reroute/forward to the frontpage again (browser displays the URL, eg: http://www.mysite.com.au/index.php?opti ... &Itemid=65) and no 404 error. The actual page is not displayed.

htaccess.txt has been renamed to .htaccess, and is located in the root. Joomla is installed in the root. Rewriterule (.*) http://www.google.com takes you to Google.
Here is the htaccess file and info from JST-post. See the error messages displayed (in red) in the 404 page. Thank you in advance for your help.
-------
Code:
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

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

#
#  mod_rewrite in use

RewriteEngine On


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

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

 RewriteBase /

SecFilterEngine Off

########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


Problem Description:
404 - Component not found
You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages:

Home Page

If difficulties persist, please contact the System Administrator of this site.

Component not found

Call stack
# Function Location
1 JSite->dispatch() /home/mydomain/index.php:68
2 JComponentHelper->renderComponent() /home/mydomain/includes/application.php:124
3 JError->raiseError() /home/mydomain/libraries/joomla/application/component/helper.php:95
4 JError->raise() /home/mydomain/libraries/joomla/error/error.php:173
5 JException->__construct() /home/mydomain/libraries/joomla/error/error.php:138

------------------------------------------------------------------------------------

Diagnostic Information
Joomla! Version: Joomla! 1.5.6 Production/Stable [ Vusani ] 12-August-2008 22:00 GMT
configuration.php: Not Writable (Mode: 444 ) | RG_EMULATION: N/A
Architecture/Platform: Linux 2.6.12-1.1390_FC4smp ( i686) | Web Server: [Secure NsHosts] ( http://www.mydomain.com.au ) | PHP Version: 5.0.4
PHP Requirements: register_globals: Enabled | magic_quotes_gpc: Disabled | safe_mode: Disabled | MySQL Support: Yes | XML Support: Yes | zlib Support: Yes
mbstring Support (1.5): Yes | iconv Support (1.5): Yes | save.session_path: Writable | Max.Execution Time: 30 seconds | File Uploads: Enabled
MySQL Version: 5.0.22 ( 64.xxx.xxx.xx via TCP/IP )

Extended Information:
SEF: Enabled (with ReWrite) | FTP Layer: Disabled | htaccess: Implemented
PHP/suExec: User and Web Server accounts are not the same. (PHP/suExec probably not installed)
PHP Environment: API: cgi-fcgi | MySQLi: Yes | Max. Memory: 32M | Max. Upload Size: 21M | Max. Post Size: 8M | Max. Input Time: 60 | Zend Version: 2.0.4-dev
Disabled Functions:
MySQL Client: 4.1.12 ( latin1 )

_________________
School Holiday Activities - http://www.KidsHolidayActivities.com.au/


Top
 Profile  
 
PostPosted: Wed Sep 10, 2008 8:03 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 15, 2008 3:13 pm
Posts: 6
I am having the exact same problem. I have followed all the steps as above, including:
The Joomla CMS is installed in a subfolder on my server called "/site" so I made the changes in .htaccess as follows:
Code:
########## End - Rewrite rules to block out some common exploits

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

RewriteBase /site


What's happening is that my 'static' content links up just fine with SEF URL's and everything. But my news articles located in my News/Latest News (section/category respectively), I get the same 404 error as above. It's basically that all the content items that have menu items associated with them work fine, but everything else that is clicked on gets an error. I hope someone can solve this soon.


Top
 Profile  
 
PostPosted: Wed Sep 10, 2008 9:04 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Jul 15, 2008 3:13 pm
Posts: 6
Well... I just found a bit of a workaround I guess.

I found that SEF URL's for my news items did not work if I had the home page directed to a category blog layout containing those same news items.

What I ended up having to do is direct the HOME link on the main menu to a frontpage blog layout instead of a category blog layout... then go through my content items and check the ones I wanted on the frontpage manually.

Once I did this, all the SEO links worked just fine. Check it out:

http://www.elamintal.com/site


Top
 Profile  
 
PostPosted: Tue Dec 08, 2009 2:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Dec 08, 2009 1:01 am
Posts: 6
I am having trouble with articles in a category blog layout.
I have been using SEO for some time with no problems at all. The rewrite seems to be working just fine... with a couple of recent exceptions.

A link from the main menu goes to a category blog layout where all the articles appear as they should. The problem is that the pdf/print/email/edit links all result in a 404 error. If the same article is linked via a menu link, the pdf/print/email/edit links all work fine.

The $live_site variable is set.

Any ideas?


Top
 Profile  
 
PostPosted: Mon Jan 11, 2010 8:02 am 
Joomla! Intern
Joomla! Intern

Joined: Sat Sep 06, 2008 5:38 pm
Posts: 95
I am replying because I have found a solution to this as well. I have been for the last month, tearing my hair out trying to fix the exact same issue and it seems no one has an answer. I found one for my site and I hope it works for some of yours. I was told by someone who went through my site that the issues were with inconsistencies in my htaccess file. How they got there, I have no idea. The solution was very simple.



MY SOLUTION: I downloaded a fresh set of joomla files and grabbed the htaccess file only. I uploaded it to replace mine and named it .htaccess . Everything worked perfect after that.


I dont know much about the whole htaccess thing so I may be way off in thinking this but can certain extensions that you install add or change this file? Someone told me that the extensions I have installed may be interfering with my sef. All I know is I never touched that htaccess file and everything was working fine before...so who knows, but I hope this helps someone!


Top
 Profile  
 
PostPosted: Mon Jan 18, 2010 4:11 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jan 18, 2010 3:31 pm
Posts: 1
Wow, I had the same problem as the thread creator and all I had to do was turn off my "SEO friendly URL's" under 'Site'>'Global Configuration'! I can't believe that's all it took, but thank God at that :-)


Top
 Profile  
 
PostPosted: Wed Jun 30, 2010 10:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jul 23, 2009 8:10 pm
Posts: 18
I get exactly the same error. Existing articles which off links from the homepage work fine.
eg www.mydomain.com/existingfile.html - load perfectly well

But if I go into article manager create a new article called test, I place it in the same section and category as the 'existingfile.html.
Now when I go to www.mydomain.comtest.html I get a 404

This is really frustrating my .htaccess file contains the following :-
Any pointers on what needs to be changed ?

#####################################################
# 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.
#
#####################################################

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

#
# mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

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

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


Top
 Profile  
 
PostPosted: Thu Jul 01, 2010 1:20 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jun 30, 2010 11:00 am
Posts: 5
Some very nice thoughts have been shared here..!!
It would definitely help us in making our site Search engine friendly.

_________________
http://www.r-1racingwheels.com/


Top
 Profile  
 
PostPosted: Sun Oct 17, 2010 6:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Sep 16, 2005 1:41 am
Posts: 5
I had some pages working and others not. I went into menu that didn't work, changed some options and then changed them back again. It seemed to fix my problem.


Top
 Profile  
 
PostPosted: Mon Nov 22, 2010 5:49 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Oct 04, 2010 6:52 am
Posts: 11
Location: Sofia, Bulgaria
Hi, all.
I think i found a solution. Just go to the Section Layout or category and remove the Alias. Joomla will create a new working SEF url:).

Hope this helps.


Top
 Profile  
 
PostPosted: Thu Feb 17, 2011 3:19 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Feb 16, 2011 9:55 am
Posts: 10
I got same problems in my site, I hope SEO setting can turn on
here my site http://www.pojok-vet.com

_________________
http://www.pinksenior.com/


Top
 Profile  
 
PostPosted: Sun Feb 20, 2011 12:38 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Feb 20, 2011 11:52 am
Posts: 1
Hi, I'm facing same problem as above. Please suggest me.
http://www.onlinebasic.com


Top
 Profile  
 
PostPosted: Fri Feb 17, 2012 8:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Dec 06, 2011 7:19 pm
Posts: 37
Hello,

I have been plagued by this SEF issue all day. I have identified the problem and I hope the solution for all.

The Problem:
On some server configurations Joomla is unable to discern the url correctly. This causes index.php to be considered as a directory and not the destination.

The Solution:
In the file configuration.php there is a var $live_site = ""; in this place the url that you are using to get to joomla. If you are on a dev site then enter the dev value but remember to set it to the live site value when you go live. This value should contain the full qualified domain name. var $live_site = "http://www.tomred.net"; for my site for example.

This means joomla can be certain of the base URL for your system. I know this is a bit late for some of you but I hope it will save time for any users out there who have just come upon this issue.

Credit goes to tomred who gave us this masterpiece in this thread;
viewtopic.php?f=544&t=341772&p=2747265#p2747265


Top
 Profile  
 
PostPosted: Sat Feb 18, 2012 10:56 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 18, 2012 10:28 am
Posts: 13
@kaycii, I'm a Joomla noob, I can't find that var in the config file.
Do I miss something?


Top
 Profile  
 
PostPosted: Sat Feb 18, 2012 3:41 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Dec 06, 2011 7:19 pm
Posts: 37
@cloudformz logon to your site control panel: www.example.com/cpanel, there using your file manager to locate the configuration.php.

click to open and edit it. then you will see it...

Hope this helps?


Top
 Profile  
 
PostPosted: Sun Apr 08, 2012 3:23 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Apr 08, 2012 3:15 pm
Posts: 1
Solved:
Had same problem, tried everything.
The solution was:
I had Joomla! (version 2.5) installed in a separate directory, NOT under the document root of my Apache.
I tried with an installation in Apache's document root, and it worked fine.
Then I created a virtual host (set it up in apache's conf/httpd.conf or conf/extra/vhosts.conf), AND also had to declare it in the windows/system32/drivers/etc/hosts file.

I had then another obstacle to overcome, that was I had Apache listen on port 8080 because port 80 was used by some other program. Solved that by finding out that the program listening on port 80 was Skype, turned off the following option in Skype: Tools > Options > Advanced > Connection > "Use port 80 and 443 as alternatives for incoming connections".

That did the trick! Everything worked fine then thereafter.


Top
 Profile  
 
PostPosted: Fri Apr 13, 2012 6:12 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 11, 2012 11:35 pm
Posts: 8
bkaine wrote:
Wow, I had the same problem as the thread creator and all I had to do was turn off my "SEO friendly URL's" under 'Site'>'Global Configuration'! I can't believe that's all it took, but thank God at that :-)


Have you noticed if turning off the SEO friendly URLs has had a negative affect on your organic rankings? Having those keywords in the URL surely help, but does getting rid of the 404 error outweigh the benefits of the SEO friendly URLs?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group