We have a website based on Joomla! in the joomla directory, there are many other directories, i.e.:
C:\myjoomlawebsite
...joomla directories...
\myspecialdirectory
in “myspecialdirectory” there are resources that sometimes are available and other times are not available, as one would imagine, when a resource(php page) is not available, a 404 page is displayed.
What I would like to do is, “somehow” tell joomla that when the user tries to access a page located in “myspecialdirectory” and it’s unavailable, it should show an article page rather than a 404.
- if the user accesses mydomain.com/ <- all good
- if the user accesses mydomain.com/existingpage.php <- all good
- if the user accesses mydomain.com/unavailablepage.php <- a 404 should be shown
- if the user accesses mydomain.com/myspecialdirectory/existingpage.php <- all good
- if the user accesses mydomain.com/myspecialdirectory/unavilablepage.php <- here’s where I want the user to see a article page in stead of a 404
Check this
For v1.5
For 1.6 & 1.7