1
vote
2answers
152 views

Thousands of robots.txt 404 errors from bots trying to crawl old multisite

Current situation is that we are getting thousands and thousands of 404 errors from bots looking for robots.txt in different places on our site due to domain redirects. Our old website was a ...
1
vote
1answer
252 views

Nginx 404 error page php with params

In Opencart, 404 error is shown in this url: /index.php?route=error/not_found This page has a 404 custom page with the template of all the website. I´ve tried in Nginx with: error_page 404 = ...
0
votes
1answer
101 views

existing file gives 404 due to a RewriteCond rule in .htaccess

To redirect a specific domain name to a folder in my public dir, www/, I edited .htaccess to the following: RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+)?domain.com$ RewriteRule ^(/)?$ ...
0
votes
1answer
612 views

Redirect 404 errors without rewriting the URL

Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 ...
1
vote
2answers
163 views

Check GET value with htaccess?

I need help with setting up a rule inside htaccess that does the following, Whenever the requested URL contains keyword love then redirect the user to another URL or maby show a 404 page. Clarifying ...
1
vote
1answer
5k views

Why do I get page not found (404) for correct links?

I have a very strange issue: Google is giving me that some links in my sitemap are not accessible and are giving 404 errors. However, I have tried to open the pages in question and it works fine. The ...
0
votes
1answer
95 views

Redirect www.mysite.com/XYZ_404err_variety to www.mysite.com, how?

I get 404 errs with tangling urls such as www.mysite.com/XYZ_404err_variety, I want to redirect everything like that to www.mysite.com/, how? I am using *ix -server on apahce. I tried this one but it ...
1
vote
1answer
272 views

Failed PCI compliance - 403 (Forbidden)

Due to a recent upgrade in the scanning done by our PCI compliance testers, we recently failed a PCI, and the suggested solution is as follows: Configure the HTTP server to specify the same error ...
1
vote
2answers
262 views

Links break in IE9 when using Wordpress plugins in non Wordpress Page

I have a site that uses SEF URLs and htaccess RewriteRules to serve up the pages. This has worked fine for several years until the arrival of IE9. Now it appears that the links are not being ...
2
votes
3answers
1k views

How to throw a 404 error from htaccess?

Everything I find seems to be about created a custom 404 page. That is not what I am trying to do. If I want to block access to a page I can do this in htaccess: RewriteRule pattern - [F] ...
0
votes
1answer
98 views

.htaccess is not working

I have a .htaccess file in /var/www, the contents of which is: ErrorDocument 404 /404.html. In apache2.conf AccessFileName is .htaccess , and AllowOverride does not exist. For some reason, visiting ...
0
votes
2answers
200 views

Returning a 404 page when a folder is accessed from one domain, but allowing access from other domains and IP addresses

Situation: I want to return a 404 page ("404.php") when a folder ("hidden") is accessed from the example.com domain. I want the same folder to be accessible from a subdomain ("hidden.example.com") ...
0
votes
3answers
663 views

mod_ReWrite to remove part of a URL

Someone has incorrectly linked to some of my urls causing 404 erros in Google Webmaster Tools. Here is an example Linked URL: http://www.example.com/foo-%E2%80%8Bbar.html Correct URL: ...
0
votes
1answer
174 views

Link Duplicity and mod_rewrite

I am running Apache 2.2.11 .htaccess RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ ...
2
votes
1answer
158 views

Problem with custom 404 page

Don't know if this question is appropriate here. I created an Alias directed to the root folder of the website (right now running on localhost). In the root folder, I have a custom 404 page, and ...
2
votes
1answer
1k views

htaccess redirect of 404 error just prints filename, doesn't execute file

On an Apache host, I have a folder called /thumbs with a program in it called program.php that I will use to create thumbnails. There is a .htaccess file that contains the following lines: options ...
2
votes
1answer
348 views

Dealing with 404s from ms sharepoint extension (/_vti_bin/owssrv.dll and /MSOffice/cltreq.asp )

The MS sharepoint extention requests the following files: /_vti_bin/owssrv.dll and /MSOffice/cltreq.asp These requests can generate a lot of 404s which make log files harder to read. I have been ...
0
votes
2answers
897 views

Apache mod_rewrite not working

I installed Apache through its windows installer and then PHP and MySQL too. Wordpress is working fine on this setup so it means the basic setup required is working fine. But somehow mod_rewriting is ...