Hi!
When a file is deleted or expired and public user is trying to open it using the link that previously pointed directly to that file (domain.com/.../category_name?download=999:filename), PD throws login screen with access error instead of 404 error. Also search engines complain about redirecting.
It there a setting or workaround to get 404 error in case the file is no longer available?
How to get 404 error when file is not available?
-
itman
- Phoca Newbie

- Posts: 5
- Joined: 15 Jul 2024, 15:24
-
lpatrick
- Phoca Professional

- Posts: 106
- Joined: 13 Feb 2024, 17:00
Re: How to get 404 error when file is not available?
Since all download files presumable are under the phocadownload folder, maybe you can create a specific .htaccess file in that top folder and redirect to a specific URL/Article with a general message that the file unfortunately no longer exists and who to contact maybe if they feel that would not be correct.
See here for some tips: https://stackoverflow.com/a/19962936
Also know that you can monitor your Joomla site so you know which dead links exist: see https://petermartin.nl/en/focus-on/joomla/seo
I hope this helps
See here for some tips: https://stackoverflow.com/a/19962936
Also know that you can monitor your Joomla site so you know which dead links exist: see https://petermartin.nl/en/focus-on/joomla/seo
I hope this helps
- Jan
- Phoca Hero

- Posts: 49586
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to get 404 error when file is not available?
Hi, thank you for your idea.
Jan
Jan
If you find Phoca extensions useful, please support the project