1
vote
1answer
29 views

Website starts showing 404 after 301 redirects via .htaccess

One of my clients websites started getting 404 messages on some pages after doing 301 redirects via .htaccess file. I don't understand why that happens, could someone tell me what went wrong? The ...
1
vote
1answer
38 views

Separate 404 page for subdirectory

I've made a subsite which runs under mydomain.com/subsite - idealy from an architecture point of view it would be under a subdomain, but we wanted the links to come back to the main domain. The sub ...
1
vote
0answers
102 views

htaccess returning 404 errors on some URLS on website

I have a .htaccess file on my main directory on my website, which basically allows pretty urls (example.com/index instead of example.com/index.html) and it will redirect to a pretty url if someone ...
3
votes
1answer
567 views

How to redirect specific url to 404 in htaccess?

I want to redirect only one specific URl (ex. mypage.com/1234/page/) to error page 404. How to achieve it in htaccess?
2
votes
2answers
151 views

Send 404 Status Code on www.domain.com

Does anyone know if it's at all possible (preferably with htaccess), to send a 404 error code and page when visiting http://www.domain.com but have http://domain.com working just fine? I want to 404 ...
1
vote
1answer
84 views

Is it possible to use two different ErrorDocuments for different paths of a website?

I currently run PmWiki at mydomain.com/pmwiki. I have a 404 page and .htaccess set up in my site's document root for 404 pages regarding anything that doesn't have to do with my wiki. By default, ...
1
vote
0answers
216 views

404 error on a file/directory that exists?

We are using the vBulletin system. I have set it up so that it redirects 404 error's to a php page, so it follows the theme of the forum. However, if I go to a directory that exists (the admin ...
1
vote
1answer
1k views

.htaccess - if not exist, rewrite to index.php but send 404 instead of 200

I have a catchall .htaccess directive like this: RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)$ index.php [L] Anything that doesn't exist and the url is ...
5
votes
1answer
1k views

.htaccess rule to redirect from 404 to search results

When a user (or a bot) request on non existing page, I want to redirect him to the search results. I prefere to do it with the .htaccess file using something like: ErrorDocument 404 ...
0
votes
1answer
361 views

Htaccess 404 & 301

The site is run on wordpress (latest) and is installed in /htdocs/www/ This htaccess file is in /htdocs/www/roh/ along with a bunch of images & some css. I want requests to the old html files to ...
1
vote
4answers
717 views

Why is Joomla based website that was copied off of live server into localhost not showing pictures and throwing 404 error?

I have copied Joomla based website via FTP onto my machine and I am trying to make it run on my localhost which is provided by the latest version of XAMPP. I have exported and imported the DB with no ...
10
votes
2answers
2k views

Is it better to have an ErrorDocument 404 redirect back to the homepage or a standard 404 error page?

We run an ecommerce site that was setup by a third party ecommerce software provider, basic shop with product pages, basket and checkout. The third party vendor set up the htaccess file so that if a ...