0
votes
0answers
6 views

Make a WP instance go to the 404 page of another WP instance

I have two Wordpress instances: One is in '/' The other one is in /commerce I would like that, when somebody goes to /commerce/nonexistingpage or some route that does not exist, the user gets ...
0
votes
1answer
33 views

htaccess redirect for all categories converted to tags now showing 404

I have a WordPress site which syndicates content from a number of sources and auto creates categories and tags. I have converted a large number of categories to tags which now leaves a ton of ...
0
votes
0answers
28 views

Automatic redirect on change of permalink not working if child page

When changing the name of a permalink on a per post basis wordpress will automatically redirect the old URL to the new URL, but not if the page is a child page. e.g: Changing ...
0
votes
1answer
157 views

A change in URL slug in database returns 404, how can I do auto-redirect?

I have a huge blog with over 10K posts and a lot of posts with some adult keywords in titles, urls, content and tags. I am trying to remove all adult ones with "search and replace" plugin. It works ...
0
votes
1answer
171 views

Changing the post date without causing 404 error

We have permalink structure based on date (like 'www.mysite/2012/05/27/postname'). Some times there are some posts that we need to be shown the first, so we change they date. The problem is, that by ...
2
votes
4answers
2k views

How to force a 404 on WordPress

I need to force a 404 on some posts based on conditions. I managed to do it ( although I don't know if I did it the right way) and I'm a getting my 404.php template to load as expected. My code: ...
0
votes
1answer
163 views

Unwanted redirect in admin area

I have a strange behaviour on my backend. This is possible due to the way my WordPress is located. I installed it in a VirtualBox, using Ubuntu from the standard repository (i.e., apt-get install ...
0
votes
2answers
754 views

How do I programmatically generate a 404?

How can I get something like this to work? // in a plugin / theme: // This imaginary function will make WordPress think that the // current request is a 404. // Ideally this function could be ran ...
0
votes
1answer
157 views

404 to 301 - Fixing old links

I have currently updated a site and made many improvements to it. The old site ran off 3 different systems and had wordpress (and the other systems) in the webroot. I have moved wordpress into a ...
-1
votes
1answer
81 views

Why my htacess rewrite return 404?

Here is my .htaccess file # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^abc/products-(.+)$ def/products-$1 [R=301,L] ...
0
votes
1answer
238 views

Setup proper 301 redirect for deleted tags

I recently deleted a large number of tags (~20k-25k) from one of the categories that publishes news items. These tags were contributed by our authors and added no value to the site. As a result, ...
1
vote
1answer
44 views

Defining a custom 404 for non-WordPress parts of site

I have a site with WordPress located in a directory under the root. The root directory contains the main files for the non-WordPress part of the site. Wordpress is included in all of these pages by ...
0
votes
1answer
260 views

Show custom data instead of 404

I'm currently developing a plugin to display some custom data on my wordpress site. For example I have a data named abc. If a visitor try to access localhost/wordpress/abc, it should display the data ...
3
votes
0answers
94 views

404 redirection and Google's index [closed]

I have several dead pages, which are annoyingly still indexed in Google. I've set my 404.php to redirect to my homepage using wp_redirect, however I'm worried that this will prevent Google from ...
2
votes
1answer
498 views

Check if post is in draft or pending review?

Each of our posts are reviews for individual games and we occasionally have to 'pause' the game by changing it from published to pending review. The problem is if the page is indexed by search ...
0
votes
1answer
55 views

Need help with major category and permalink re-organization

I would like to re-organize my categories and the permalink structure. I want to rename and merge categories, make previous categories sub-categories and change the permalink structure from ...
0
votes
2answers
542 views

Wordpress Auto-Redirecting on 404

I believe that Wordpress will try to find a suitable URL if you enter a wrong one. So I have a page http://www.example.com/products/ and by mistake I enter http://www.example.com/prods/ Wordpress will ...
5
votes
2answers
3k views

Redirect Restricted Page to 404

Is there a way to show a 404 page if the current logged in user does not have the right clearance to view the page? I am looking for a PHP method, something like if( ...
7
votes
5answers
4k views

How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html?

How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html? I read and it seems its not possible when using permalinks? The objective is to reduce the server ...
2
votes
1answer
189 views

Redirect feed to 404 page

I would like to redirect my visitors to my 404 when they visit any feed of my page. Something like this. I would liek to do this without changing the header URL. function fb_disable_feed() { // ...
1
vote
4answers
678 views

Where does the 404 redirection happen?

Can someone please tell me where the 404 redirection occurs? I am wanting to redirect to a custom template.php instead of the 404 page. Is this possible to do? If it is can some one provide me with ...
1
vote
2answers
323 views

404 redirecting to home [closed]

I have a multisite network, and my theme has a custom 404.php. On all the child sites this 404 handler is being correctly used, but on the primary site all 404s go back to the home page without ...