ErrorDocument 404, needed also on root?
-
jrodgar
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 34
-
Thank you received: 0
-
-
11 years 1 day 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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 1 day ago #1836
by admin
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
-
Less
More
-
Posts: 34
-
Thank you received: 0
-
-
11 years 1 day ago #1837
by jrodgar
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
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 1 day ago #1838
by admin
If you don't need htaccess.txt you could create a new .htaccess file and add only line:
I cannot see the problem...
Please Log in or Create an account to join the conversation.
-
jrodgar
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 34
-
Thank you received: 0
-
-
11 years 1 day ago #1839
by jrodgar
Mmm I think that we aren´t talking about the same thing
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
11 years 1 day ago #1840
by admin
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.165 seconds