homepage Welcome to WebmasterWorld Guest from 54.234.141.47
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Content Management
Forum Library, Charter, Moderators: ergophobe

Content Management Forum

    
Joomla 1.5 404 for one page
Joomla 1.5, sef, 404
scott1137



 
Msg#: 4334919 posted 11:41 pm on Jul 4, 2011 (gmt 0)

404 error on one page only

Joomla! 1.5.23 Stable [ senu takaa ama baji ] 04-March-2011 18:00 GMT
PHP Version: 5.2.9
MySQL version: 4.1.22
Web Server: Apache/2.0.52
Web Server to PHP interface: apache2handler
AceSEF: 1.5.17
Linux server
site:[url]www.helptherapist.com/[/url]

Problem: link to about page from home and other pages returned a 404.

Action taken:
- in global config, turned sef to no


Result: clicking on about page returns Home page. btw, clicking on 'About' link in text of 'Home' page returns the appropriate 'About' page. Toggling SEF on/off toggles 404/home page. SEF on=>404; off => home (instead of about) page

Comments: Actions taken because recent plugin (AceSEF) added. Don't think this issue was present after they were added but not sure. Don't know why just the one page, and via to main menu, affected.


tia.

 

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 12:41 am on Jul 5, 2011 (gmt 0)

You could temporarily solve it with an internal rewrite.

Turn SEF on. Hover your mouse over the 'About' link. Do NOT click it. Hover your mouse over the 'About' link and look at the URL displayed in the browser status bar. The browser status bar is the one at the BOTTOM of the window. Look at the URL shown in the browser status bar.

Make a note of what it says after the domain name. Discard the first slash.

Turn SEF off. Click on the 'About' link. Look at the browser 'Address' bar. The browser 'Address' bar is the one at the top of the window.

Make a note of what it says after the domain name. Include the first slash.

Add this code to your .htaccess file, immediately BEFORE the Joomla SEF rewrite code:

RewriteRule ^stuff-in-the-browser-status-bar$ /index.php?stuff-in-the-browser-address-bar [L]

Now when you turn SEF on and click the 'About' link, the rewrite will silently connect your URL request with the internal script that will deliver the content.

scott1137



 
Msg#: 4334919 posted 12:52 am on Jul 5, 2011 (gmt 0)

Interesting. Will do.
Great thanks.

scott1137



 
Msg#: 4334919 posted 1:05 am on Jul 5, 2011 (gmt 0)

Hmm. When I click on the About link in step 2 (after looking at the browser status, turning SEF back on) and watch the address bar I see a redirect to the Home page which has no slash and no other page.

I say redirect because another url briefly flashes before the home page.

So,

1. where might this redirect come from? I'll look at the .htaccess file.

2. If I were to proceed with this work around what would I use as the url in the new redirect?

scott1137



 
Msg#: 4334919 posted 1:08 am on Jul 5, 2011 (gmt 0)

There is this:
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#

scott1137



 
Msg#: 4334919 posted 1:12 am on Jul 5, 2011 (gmt 0)

I have not edited or worked on the affected page for some time. I have turned SEF and AceSEF on & off. Page looks okay from within Joomla backend.

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 1:13 am on Jul 5, 2011 (gmt 0)

That line on its own would block access to any and every URL on your server.

Luckily that rule only fires if the preceding conditions evaluate as true.

You need to look at the HTTP requests and responses using the Live HTTP Headers extension for Firefox.

scott1137



 
Msg#: 4334919 posted 1:28 am on Jul 5, 2011 (gmt 0)

Will do - sitting down to bbq - but will be back in a bit.

Meanwhile would you write more about what I'll be looking for?

Thanks

scott1137



 
Msg#: 4334919 posted 1:48 am on Jul 5, 2011 (gmt 0)

I haven't found a way to catch the page that's getting redirected but the one to the correct 'About' page from the link in the middle of the home page looks right:
The Get is correct and the Response is 200 ok. Both HTTP 1.1. If it weren't correct wouldn't I be getting redirected to home page?

scott1137



 
Msg#: 4334919 posted 1:50 am on Jul 5, 2011 (gmt 0)

Commented out the rewrite rule to no obvious effect.

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 1:51 am on Jul 5, 2011 (gmt 0)

Live HTTP Headers will show you all of the requests and responses.

It is the only way to see the intermediate steps.

scott1137



 
Msg#: 4334919 posted 2:08 am on Jul 5, 2011 (gmt 0)

Yes. I'm using Live HTTP Headers - thanks for that; new to me. Rewrote only what I assumed important - LHH doesn't allow cut& paste.

Am I even looking at correct page? The one that's problematic redirects to home page. How do I catch it to look at the headers.

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 10:05 pm on Jul 5, 2011 (gmt 0)

Live HTTP headers shows you a request and response then the next request and response that invokes. It also shows the parallel requests and responses for images. Simply scroll down the list to see them all.

scott1137



 
Msg#: 4334919 posted 10:22 pm on Jul 5, 2011 (gmt 0)


Thanks for clarifying.

When I look at what's returned for the link to About from mid-page of Home (not the problem link) I see two sets of lists.It all seems okay.

I'm in class and away from home computer for 10 more hours so can't look at it directly. I can show a shot of it later if that'll help.

I couldn't use the LHH with the problem link as it redirects to home page.

Demaestro

WebmasterWorld Senior Member demaestro us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 10:25 pm on Jul 5, 2011 (gmt 0)

Are you using the sh404SEF component?

scott1137



 
Msg#: 4334919 posted 11:42 pm on Jul 5, 2011 (gmt 0)

No.

AceSEF, but inactivated. Also there's a SEF that was there that I think is Joomla's. In any case it was there when I took over the site 2 years ago.

btw, I replaced the ,htaccess file with one from a fresh download of same version of Joomla. There were some differences in the SEF section but replacing it seems not to have made a difference.

Thanks for your patience and perseverance.

scott1137



 
Msg#: 4334919 posted 4:37 pm on Jul 6, 2011 (gmt 0)

Checked it is "System-SEF" and is disabled.

scott1137



 
Msg#: 4334919 posted 4:45 pm on Jul 6, 2011 (gmt 0)

How do I run Live HTTP Headers (LHH) on a page that is redirecting?

Clicking on the "about" page link on the nav bar from any page causes the redirect/404 problem. How do I catch that?

I can run LHH on the link in the body that correctly goes to the about page - but that link is not the problem. Near as I've been able to tell, the url for both is the same.

So, if I understand correctly, I need to see what's happening in the header during the transaction.

Also, perhaps there is a work around. As much as I'd love to understand what's going on, fixing it is more urgent.

Thanks again for your perseverance and patience.

scott1137



 
Msg#: 4334919 posted 5:26 pm on Jul 6, 2011 (gmt 0)

OK, answered my Q (it helps to write it out):
Turned on SEF at global config to get 404 instead of redirect.

Here's LHH readout:
http://www.helptherapist.com/about-mainmenu-35

GET /about-mainmenu-35 HTTP/1.1
Host: www.helptherapist.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Cookie: 18dd4d64515d56106c4171c7bd561f9f=941dc302a0bf0b84c4c84c06a7b4d785; __utma=125776147.476053122.1309971146.1309971146.1309971146.1; __utmb=125776147.5.10.1309971146; __utmc=125776147; __utmz=125776147.1309971146.1.1.utmcsr=helptherapist.com|utmccn=(referral)|utmcmd=referral|utmcct=/
DNT: 1
Connection: keep-alive

HTTP/1.1 404 Not Found
Date: Wed, 06 Jul 2011 16:56:10 GMT
Server: Apache/2.0.52
Content-Length: 215
Connection: close
Content-Type: text/html; charset=iso-8859-1


I've checked url in backend via mainmenu and article manager and all looks correct.

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 10:48 pm on Jul 6, 2011 (gmt 0)

Even when it is redirecting, Live HTTP Headers will show:

GET 1
RESPONSE 1, "see 2"
GET 2
RESPONSE 2

It's all there, you just have to scroll up/down the results.

scott1137



 
Msg#: 4334919 posted 11:18 pm on Jul 6, 2011 (gmt 0)

Sorry, I'm still not quite getting it.

In the live HTTP Headers readout I pasted above does
GET 1 =/about-mainmenu-35 HTTP/1.1
RESPONSE 1, "see 2" = 404 Not Found

Or,

does the whole block (14 lines), starting with "GET" = Get 1?

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 11:32 pm on Jul 6, 2011 (gmt 0)

The block is an entire HTTP transaction. There are (likely) multiple transactions in the report.

Your browser sends everything in the first part of the first block to your server as an HTTP Request. One line of that request is the GET request, asking for the specific page.

In the second part of the first block is the HTTP headers that the website sent back. If that response contains a redirect code (301, 302, 307) you will see that clearly in the response.

The browser will then make a new request for that new URL. This will appear in the first part of the second block.

The server response will follow that in the second part of the second block.

Scroll up and down to see all of the transactions.

scott1137



 
Msg#: 4334919 posted 11:43 pm on Jul 6, 2011 (gmt 0)

Thank you.

So in the transaction I pasted above the response was clearly 404. There were no further transmission blocks. I don't see anything that tells me why.

I'll next check the redirect (where it gets redirected to home page).

scott1137



 
Msg#: 4334919 posted 11:52 pm on Jul 6, 2011 (gmt 0)

Not catching it: I get the headers for the Home page (1 transaction set only) because I'm not getting it live. The page info is after I click on it. How do I catch it live?

scott1137



 
Msg#: 4334919 posted 12:17 am on Jul 7, 2011 (gmt 0)

I see: To use Live, I go to Tools => Live HTTP Headers.

Have to leave class but quick glance show a successful series of transaction with one in the middle which returned a 404 for a favicon file.

Will study when I get home.

Thanks again for your patience.

scott1137



 
Msg#: 4334919 posted 12:20 am on Jul 7, 2011 (gmt 0)

meanwhile,

Here's the run:
http://www.helptherapist.com/index.php?option=com_content&view=article&id=5&Itemid=35

GET /index.php?option=com_content&view=article&id=5&Itemid=35 HTTP/1.1
Host: www.helptherapist.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: 18dd4d64515d56106c4171c7bd561f9f=9a9540a50baac1c67753e9a0c55a6432; __utma=125776147.25322310.1309995986.1309995986.1309995986.1; __utmb=125776147.8.10.1309995986; __utmc=125776147; __utmz=125776147.1309995986.1.1.utmcsr=helptherapist.com|utmccn=(referral)|utmcmd=referral|utmcct=/

HTTP/1.1 200 OK
Date: Thu, 07 Jul 2011 00:17:56 GMT
Server: Apache/2.0.52
X-Powered-By: PHP/5.2.9
Content-Length: 336
Connection: close
Content-Type: text/html; charset=UTF-8
----------------------------------------------------------
http://www.helptherapist.com/favicon.ico

GET /favicon.ico HTTP/1.1
Host: www.helptherapist.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: 18dd4d64515d56106c4171c7bd561f9f=9a9540a50baac1c67753e9a0c55a6432; __utma=125776147.25322310.1309995986.1309995986.1309995986.1; __utmb=125776147.8.10.1309995986; __utmc=125776147; __utmz=125776147.1309995986.1.1.utmcsr=helptherapist.com|utmccn=(referral)|utmcmd=referral|utmcct=/

HTTP/1.1 404 Not Found
Date: Thu, 07 Jul 2011 00:17:56 GMT
Server: Apache/2.0.52
Content-Length: 209
Connection: close
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------
https://www.helptherapist.com/

GET / HTTP/1.1
Host: www.helptherapist.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://www.helptherapist.com/index.php?option=com_content&view=article&id=5&Itemid=35
Cookie: 18dd4d64515d56106c4171c7bd561f9f=9a9540a50baac1c67753e9a0c55a6432; __utma=125776147.25322310.1309995986.1309995986.1309995986.1; __utmb=125776147.8.10.1309995986; __utmc=125776147; __utmz=125776147.1309995986.1.1.utmcsr=helptherapist.com|utmccn=(referral)|utmcmd=referral|utmcct=/
If-Modified-Since: Thu, 07 Jul 2011 00:11:40 GMT

HTTP/1.1 200 OK
Date: Thu, 07 Jul 2011 00:17:56 GMT
Server: Apache/2.0.52
X-Powered-By: PHP/5.2.9
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Expires: Mon, 1 Jan 2001 00:00:00 GMT
Last-Modified: Thu, 07 Jul 2011 00:17:56 GMT
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
----------------------------------------------------------
https://ssl.google-analytics.com/__utm.gif?utmwv=5.1.0&utms=9&utmn=1093576258&utmhn=www.helptherapist.com&utmcs=UTF-8&utmsr=1680x1050&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=10.1%20r102&utmdt=HELP%20-%20home&utmhid=1749282073&utmr=0&utmp=%2F&utmac=UA-20252475-1&utmcc=__utma%3D125776147.25322310.1309995986.1309995986.1309995986.1%3B%2B__utmz%3D125776147.1309995986.1.1.utmcsr%3Dhelptherapist.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2F%3B&utmu=q~

GET /__utm.gif?utmwv=5.1.0&utms=9&utmn=1093576258&utmhn=www.helptherapist.com&utmcs=UTF-8&utmsr=1680x1050&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=10.1%20r102&utmdt=HELP%20-%20home&utmhid=1749282073&utmr=0&utmp=%2F&utmac=UA-20252475-1&utmcc=__utma%3D125776147.25322310.1309995986.1309995986.1309995986.1%3B%2B__utmz%3D125776147.1309995986.1.1.utmcsr%3Dhelptherapist.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2F%3B&utmu=q~ HTTP/1.1
Host: ssl.google-analytics.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://www.helptherapist.com/

HTTP/1.1 200 OK
Date: Thu, 07 Jul 2011 00:04:59 GMT
Content-Length: 35
Pragma: no-cache
Expires: Wed, 19 Apr 2000 11:43:00 GMT
Last-Modified: Wed, 21 Jan 2004 19:51:30 GMT
Content-Type: image/gif
Cache-Control: private, no-cache, no-cache=Set-Cookie, proxy-revalidate
Server: GFE/2.0
----------------------------------------------------------


Comments welcome

BillyS

WebmasterWorld Senior Member billys us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4334919 posted 12:52 am on Jul 7, 2011 (gmt 0)

Temporarily coming out of retirement for this one...

The About link in the middle of your home page is set to https:// That's why it works.

The About link in your navigation is set to http://

That's why it fails.

It's all related to the only threads you've every started here. Same problem, same solution.

Back to retirement.

scott1137



 
Msg#: 4334919 posted 2:36 am on Jul 7, 2011 (gmt 0)

Thank you.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Content Management
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved