I have a website where customers can download msi files. Over time, I retire older version and drop them from my site.
I've noticed that a number of users are following links to the older file paths. When the do, they're seeing the following:
Not Found
The requested URL /files/VBADiff/VBADiff_Professional_Setup_2_0.msi was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I would like to either display my custom 404 message or redirect them to the correct download path. Unfortunately I can't figure out how to do this - I'm a bit surprised that visitors aren't already seeing my 404 message. Can anyone help?
Edit: I'm using version 1.5.11 of Joomla.
File downloads, particularly direct links from an outside referrer do not instantiate the Joomla framework so nothing in Joomla is going to help your problem. Depending on the URLs you are using to get to the files, you will have to fix this issue with either a typical 301 redirect for URLs without query strings or mod_rewrite for those with.
You can use a redirect plugin for joomla 1.5 which also protocalls 404 accesses. I like this one: http://extensions.joomla.org/extensions/site-management/url-redirection/14676
Related
I bought an app template to mess around with, and when I'm trying to login in this case via Facebook it's calling the API I set up according to the guide.
It's calling
http://IP/mobileapp_api/api/registerUser
Now it's giving me the 404 error because the API folder does not exist, but when looking through the documentation and double-checking everything I also notice that he also doesn't have an API folder, but he's able to get a response just fine.
How is this possible?
Link for the video documentation https://www.youtube.com/watch?v=G1OTEbnD6CM&t=324s
I've tried to reach out to the developer, but with the current covid situation in his home country, I doubt I'll get a reply anytime soon, hence why I've come here.
Not sure why, but uploading the files via CPanel and not Filezilla somehow made it all work.
I am in the process of switching my site analytics from GA to Piwik and would like to incorporate all the historic data that I can. I have already concatenated the full trail of apache log files I have in my possession. However, what I do next is not at all clear to me and the Piwik documentation does not help. It says something along the lines of
python /path/to/piwik/misc/log-analytics/import_logs.py --url=http://analytics.example.com access.log
I have my concatenated log file, all.logs, in the log-analytics folder. I would have thought that I just need to issue
python /path/to/piwik/misc/log-analytics/import_logs.py all.logs
but that throws up an error message. When I provide the URL to the site in question too I get an error saying that it gets back an HTML document (naturally) which it does not like.
I'd be most grateful to anyone who might be able to put me on the right track here.
I think --url=http://analytics.example.com let's you set the URL of Piwik, not your website.
I am finalizing my Joomla-site with a Siteground host and encounter the following problem: my site shows the IP-adress instead of the url. Although I type in the url (www.nooitmeerfile.be by the way), it shows the IP-adress.
Could someone please give me a step-by-step explanation on how to fix this? I happen to find a lot of fragmented answers cluttered around the web. I am a novice user, and I'm stuck :-)
Thanks!
Possible steps to debug your issue:
Check configuration.php public $live_site = ''; and try to add your
domain (without trailing slash).
Check if .htaccess file is not altered and try to download and use a fresh copy.
Check if you are using 3rd party sef components / plugins and try to disable them.
Clear your joomla and browser cache.
Contact your hosting provider if something in your hosting is misconfigured.
Hope this helps
I currently have a working Bolt installation on my main domain (i.e. example.com). But I also wanted a subdomain (i.e. blog.example.com).
I created it, but when I uploaded Bolt to it, but when I tried to access it I only got 404 errors.
I tried copying the Bolt installation from the main domain, then only the main page works, but when I try to access the CMS I get a 404 error. Also if I try to access other pages (i.e. blog.example.com/images) I get a 404.
I tried to change the RewriteBase in the .htaccess to all possible things, but no result.
Also if I do it on another hosting company it is just working, does anyone have a suggestion?
Thanks in advance!
if it is working at another hosting company, maybe that is something non-bolt related issue.
I assume that both of them Apache, so after checking file access rights then I would check apache log.
I had the exact same issue and found out that mod_rewrite was disabled on my sub domain.
I am trying to deploy my locahost CakePHP website to a subdomain. I am able to view the website but it is not working correctly when I try to login or register.
It does not show me any validation error nor does it allow me to login or register and it is landing on the below URL:
subdomain.example.com/webroot/index.php?url=users/login
where it should be something like:
subdomain.example.com/users/login
I am using Go Daddy shared hosting.
The older settings defined at http://bakery.cakephp.org/articles/cguyer/2009/10/18/mod-rewrite-on-godaddy-shared-hosting has solved the issue.
Thank you every one for your help.
This sounds (and looks) like an Apache rewrite issue. There are a couple of things you need to look at:
Check to make sure the .htaccess files are were they are expected. You should have one in the app directory and another in the webroot directory. Sometimes when we compress and/or transfer files to the webserver, the .htaccess files get left behind.
Make sure that the server you are running the site on has rewrite turned on. This may require that you call support at Go Daddy. But my experience is they are always willing to help.
Good luck!