× Here you can get community support related to ReDJ.

ErrorDocument 404, needed also on root?

  • jrodgar
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 5 months ago #1833 by jrodgar
If you have joomla on the root domain (domain.com), and the url rewriting for deleting the index.php is activated... do you need the ErrorDocument 404 directive? Some example of this? It´s "ErrorDocument 404 /" useless?

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #1836 by admin
Replied by admin on topic ErrorDocument 404, needed also on root?
Hi,
try to call an URL like:

domain.com/blablabla

You should get a blank error page, and this is provided by Apache. What if you want to catch this with Joomla or ReDJ? Adding the ErrorDocument you can... :)

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

  • jrodgar
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 5 months ago #1837 by jrodgar
Replied by jrodgar on topic ErrorDocument 404, needed also on root?
But if you use the htaccess provided by joomla that rewrite the urls, joomla allow urls like that, removing the index.php. In that case, would be unnecesary I guess :unsure:

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #1838 by admin
Replied by admin on topic ErrorDocument 404, needed also on root?
If you don't need htaccess.txt you could create a new .htaccess file and add only line:
ErrorDocument 404 /

I cannot see the problem... :)

Please Log in or Create an account to join the conversation.

  • jrodgar
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 5 months ago #1839 by jrodgar
Replied by jrodgar on topic ErrorDocument 404, needed also on root?
Mmm I think that we aren´t talking about the same thing :cheer:

I have this:

domain.com/index.php/sample/sampleton

if I access something like domain.com/sample I´ll get a apache 404, not a joomla 404. To avoid this, I do something like ErrorDocument 404 / or /index.php

Now I activate the rewrite and domain.com/sample it´s valid. I´m thinking that domain.com/dontexist will trigger the joomla 404 because you are already on the domain root. I have made some tests about it that looks right but simply put, it seems to work but I´m not sure why and if I´ll needed again later in some case I can see now.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #1840 by admin
Replied by admin on topic ErrorDocument 404, needed also on root?
Ok,
just let me know if you need more support on this.

Please Log in or Create an account to join the conversation.

Time to create page: 0.104 seconds