Using Joomla, htaccess won't forward pages without an extension to the correct 404 page?

859 Views Asked by At

At LTCperformance.com, I've created a custom 404 page. If the user types in ltcperformance.com/fakepage.html, it forwards to the 404 page. But if there's no extension (ltcperformance.com/fakepage), it simply shows a default system 404 page.

I'm controlling the 404 page using htaccess:

ErrorDocument 404 http://ltcperformance.com/404.php
ErrorDocument 403 http://ltcperformance.com/404.php
ErrorDocument 500 http://ltcperformance.com/404.php

I have URL Rewriting in Joomla Administrator = on Also, in Joomla Administrator, the Adds Suffix to URL = off

Any ideas? I've gone through every answer I can find on other posts and nothing will bring up my custom 404 page if there isn't an extension on the file.

ADDITIONAL INFO: Any non-existent pages go to the homepage when I do these settings: - Search Engine Friendly URLs / NO - Use URL rewriting /Yes - Adds Suffix to URL /No

I have someone taking a look at it on the server side, but I don't know what server issue it is - everybody online says it's a server issue but the support can't pinpoint what the actual server issue is. It's Godaddy; I did set their 404 page settings (they have a separate place to put it) to my 404 page, but that didn't work either.

1

There are 1 best solutions below

6
On

Joomla .htaccess routes all requests to the index.php in order to support SEF urls.

In case it can't route a page, it will load the templates' error.php page. You can edit that to your requirements, this will be the easiest.

Should the error.php not be included in your template, copy the one in /templates/system to your template folder and customize it.