Free Web Hosting Forum
(#1 (permalink))
Old
Member
marksfish is on a distinguished road
 
Posts: 56
Join Date: Jul 2008
Question Custom 404 in Joomla 1.013 - 07-19-2008, 08:36 AM

I have just installed the component add on for search engine friendly urls. I am looking at how to create custom error pages for my site now as all non existent pages go to 000's 404 page. I have been able to utilise Joomla's error handling, but only if the page is www.mysite/index.php?holiday as that is how the SEF works. If I put in www.mysite/holiday, I am taken to 000 404 pages.

Other providers I have used in the past have folders outside of the public_html folder where you can add your customised pages, but they are not available here.

Has anyone successfuly managed to remove the 000 error pages from a Joomla installation, and if so, could you help me do it please?

Many thanks

Mark
Reply With Quote
(#2 (permalink))
Old
Member
marksfish is on a distinguished road
 
Posts: 56
Join Date: Jul 2008
Default 07-20-2008, 05:01 PM

So far I have managed to use the 404 pages provided by the SEF extension. These only work though when trying to access a page generated by SEF that did originally exist but has been removed, not if it is typed incorrectly. I have also put a e404.php file in the public_html directory and the following code: ErrorDocument 404 /e404.php into my htaccess. This has the effect of any php file being called being redirected to the 404 page, but any file with a .htm extension or just a directory name returning a Internal Server Error.

Getting there slowly.
Reply With Quote
(#3 (permalink))
Old
yeleyko's Avatar
Member
yeleyko is on a distinguished road
 
Posts: 93
Join Date: Apr 2008
Location: Lviv, Ukraine
Default .htaccess and SEF URLs - 07-21-2008, 11:18 AM

rename htaccess.txt
to .htaccess (do not forget include the "." before)

download .htaccess to your computer, open with Notepad
find every "index.php" and before it put the sign "/"

after it should look
/index.php

save the file and upload back to your web folder

go to Joomla admin, Global Configuration and make Search Engine Friendly URLs.

and ...one more thing: this process id described in your CPanel as well as somewhere on this forum...
Reply With Quote
(#4 (permalink))
Old
Member
marksfish is on a distinguished road
 
Posts: 56
Join Date: Jul 2008
Default 07-21-2008, 11:49 AM

I found out last night that the .htaccess file is not required by Joomla (even though I had correctly renamed the file thasnk you). Putting a 404.php page in the root of the public directory enabled the SEF add on to correctly displpay them.

I did search this forum and ther Joomla forum before posting but the searches did not bring up relevant information .
Reply With Quote
(#5 (permalink))
Old
yeleyko's Avatar
Member
yeleyko is on a distinguished road
 
Posts: 93
Join Date: Apr 2008
Location: Lviv, Ukraine
Thumbs up 07-22-2008, 07:47 PM

Glad you've managed this. I by myself used to struggle a lot from this issue until have found this under Frequently Asked Questions in CPanel:

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com