Questions tagged [redirect]

"HTTP Redirection" – the process by which a request for one URL is automatically replaced by a request for a different, usually related, URL.

Filter by
Sorted by
Tagged with
3
votes
2answers
25k views

Redirection Plugin: Redirect all URLs with a regular expression

I understand little about regular expressions, but I need to figure one out to use with the Redirection plugin which supports redirects with regular expressions. http://urbangiraffe.com/plugins/...
2
votes
1answer
1k views

Wordpress removes spaces in URL on pagination

I'm having a problem with wordpress rewriting my URLs, basically I have a regular search form with method set as GET, when I submit it the URL looks like this at first: http://mysite.com/news/?type=...
0
votes
2answers
7k views

301 Redirect all posts urls from .html to / (without .html)

How can i redirect all posts permalinks from .html to / ,in Wordpress ? now all my posts url are ending in / ,but before it was with .html to be more clear ,for example a post url like this http://...
1
vote
4answers
1k views

Login redirect problem

hey i got a slightly weird problem.. i got a form enabling login in certain single's according to the cateory and user level.. it works great but the server which is windows (where the website is ...
1
vote
1answer
964 views

how to create site exit messages with destination url displayed

i'm looking for a way to show an exit page or message when a user leaves my site. we have a uk version of our site, and some of the nav links lead back to our us site. i want to let users know that ...
0
votes
2answers
2k views

Flash Intro is embedded in a html, how do I integrate as my first page

I still learning how to work with WordPress. I know little of php. I have a flash intro that was done in a html file. I would like to find out how to integrate this as the first page on the website. ...
6
votes
1answer
7k views

Stop Wordpress from “guessing” redirects for nonexistent URLs

Wordpress sometimes "guesses" a redirection for a nonexistent page slug if the slug is at the beginning of another URL. After some searching, my hypothesis is that this part of the canonical ...
1
vote
1answer
812 views

Using redirection plugin to pass URLs as lowercase to wordpress

have been experiencing a problem yesterday. My site is in Hebrew language. MY site is built on Wordpress. The problem is related to escaped encoded posts URL only. IF the post URL has escaped encode ...
0
votes
4answers
4k views

Wordpress permalink, stop redirection

I'm having some hard-time with with WordPress permalinks. WordPress 3.1 seems to force url redirection, ex: This is the correct post url: http://www.mysite.com/test/1/mypost.html If I go to any of ...
1
vote
2answers
2k 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
1answer
7k views

add_rewrite_rule: $matches var not replaced by captured value

I want to access a plugin file (when <a> is clicked) without exposing actual path of the file. I am using the following rewrite rule: add_rewrite_rule( 'continue/([0-9]+)/?$', 'wp-content/...
0
votes
2answers
191 views

Permalinks and page store

I posted this on stackoverflow and they said i can try here - I have wordpress installed on my website. On that site, under a subfolder i have oscommerce system installed as online commerce store. ...
0
votes
1answer
77 views

Writing a link cloaking plugin

I do not want to use any existing plugin. For WordPress-less projects, I would specify a PHP file in href <a href="FileOnMySite.php">Click here</a> FileOnMySite.php will be like header(...
2
votes
3answers
1k views

You do not have sufficient permissions to access this page

After long time am here,I have one question. I Installed my wordpress in localhost and i moved to live,while i forgot the admin password,so i reset it by phpmyadmin(using md5).now i try to login by ...
0
votes
3answers
8k views

Blog has an infinite redirect loop

Why is http://compassionpit.com/blog/ going through an infinite redirect loop? Here's my nginx conf file. The site is run by a nodejs server on port 8000 and Apache serves up the blog (wordpress) and ...
0
votes
1answer
570 views

Plugin redirects URL structure using 301 redirect. Time to disable the plugin?

I have been using a plugin that goes by the name "Permalink Redirect." This WordPress plugin redirects older permalinks to the newer one set by me. Old URL structure: /%year%/%category%/%postname%....
3
votes
2answers
2k views

Restrict Access to wp-login.php

I have a hard coded login/register/lost password form in the sidebar of my theme. I am using hidden input for "redirect_to" which is working fine. But when I press login button without entering ...
1
vote
2answers
1k views

How to redirect 'file url' to 'post url' i.e. in attachment.php

I've just started using the attachment.php template on my site. What I'd like to do is redirect all images in posts that used 'file url' to 'post url' and my new attachment.php template. Is this ...
1
vote
1answer
3k views

Change template dynamically

Is it possible to change the template loaded for a page, as it loads, without having to change the record in the database? I suspect it can be done with the template_redirect action, and the will ...
2
votes
1answer
3k views

Moving variables from one page to another

How can I link to another WordPress page but move variables to it as well (preferably not through the address bar)? For instance, I have on one page a list of shops in which a user should be able to ...
0
votes
1answer
267 views

Import RSS as posts with redirect?

I'm looking for a way to import RSS items from an external blog as posts with a redirect on them. The purpose is to have another blog's posts show up in my front page excerpts but actually deliver ...
0
votes
3answers
1k views

Have Wordpress post redirect to url when accesed from iPad (Safari)

Since the Ipad doesn't work nicely with issuu I'm trying to set up a system where if users would acces one of my blog post from an ipad device they get redirected to the a pdf file which is on my ...
24
votes
4answers
50k 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( !current_user_can('administrator')...
2
votes
2answers
9k views

Wordpress Redirect based on the prescence of a cookie

I have a tricky situation.... I'd like to check for a cookie. If it doesn't exist then then redirect to an internal wordpress page, and set a cookie. And then carry on browsing the site. But i get ...
2
votes
4answers
2k views

Can Wordpress redirect to a “similar page” in case of 404 error

This stuff is driving me nuts. The following url does NOT exist and should return a 404: http://www.easyjob.net/resume/ However, if I try to access it, I get a 301 to http://www.easyjob.net/r/cover-...
0
votes
2answers
1k views

How should I set up a Tumblr blog at a WordPress Page?

I am developing a site for a client, let's call it whatever.com. He wants to have his Tumblr blog at whatever.com/blog. (Tumblr lets you name the URL at which your Tumblr page will be served, and if ...
18
votes
7answers
27k 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 ...
1
vote
1answer
2k views

Facebook like button that redirects?

Basically, here is an idea: I am starting a daily blog, and in order to gain access to sunday's posts, the user needs to share the site. I have figured out how to redirect once someone presses the +1 ...
3
votes
4answers
656 views

Nicest way to 301 Redirect traffic when changing permalink settings

If I change my permalink structure, is there is a nice way to handle when people/bots go to the old structure? I presume I can add use .htaccess and write a rule to redirect based on a 301 but is it ...
2
votes
2answers
2k views

wordpress custom login successful redirect hook

I am using a custom login form imported on my theme's home page through jqModal. In that, when i successfully login it redirects to the same page. I want to redirect based on the logged in user role. ...
0
votes
2answers
594 views

How to redirect root blog to a specific one in multilang WP?

After installation I've got a default root blog '/'. Then I've created a new one '/en'. I really don't want to use the default blog. How can I redirect all accesses from / to /en ?
-1
votes
1answer
175 views

problem redirecting users to page on login

I'm trying to redirect certain users to a part of my site but I cannot seem to make it work... can you take a look at this and tell me what I'm doing wrong? if ( ! function_exists( '...
1
vote
4answers
5k views

Redirecting when changing custom post type slugs?

I changed the name of two of my custom post types. The original slugs for them did not properly reflect the post type. So I need to redirect requests for posts beginning with designer_lingerie (the ...
2
votes
2answers
6k views

How do I redirect upon login a specific user based on role?

I'd like to force a user to a specific page upon login based on their role using if ( current_user_can('contributor') ) and the main login function function wp_loginout($redirect = '', $echo = true)...
2
votes
1answer
1k 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() { // ...
3
votes
2answers
5k views

Redirect to custom url when registration fails?

When I want to redirect the user after successful registration, I just use "registration_redirect" filter hook. How about when registration fails, which filter hook should I use? I looked into wp-...
0
votes
1answer
924 views

Load template inside a parent template

Inside of my current theme directory, I created a folder called "mobile" which contains a separate set of template files, all optimized for mobile. Now, say I setup a function that detects a mobile ...
0
votes
2answers
1k views

Redirect wrong links Wordpress

I am using the following permalinks structure: /%postname%/ and I also have some multi-page posts that look like /%postname%/2. The problem is I see a lot of 404 errors in webmaster tools for urls ...
1
vote
4answers
1k 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 ...
4
votes
2answers
3k views

Custom admin_notices Messages Ignored During Redirects

I have a error handling mechanism setup in one of my plugins to add notices and errors to the admin area, just like the core does. It works fine in most cases, but there are some situations (like ...
2
votes
1answer
1k views

Redirect category to first available child post

Is possible to redirect category to first available child post please? Thanks!
4
votes
4answers
45k views

How to redirect a sucessful registration to a page template?

Each time I register I end up in the wp-login page (back-end): Is there any way of redirecting the users who register to a page template (front-end)?
0
votes
2answers
734 views

Migrating to Tumblr [closed]

I've become a big fan of Tumblr for a few reasons (the minimalism, ease of making quote/photo/video style posts, and the clients for mobile devices I use), so I've decided that after 7 loyal years of ...
11
votes
3answers
3k views

How does WordPress handle permalinks?

WordPress auto corrects the permalinks(URLs) even if it is entered incorrectly. For e.g. WordPress will land you in example.com/some-post even if you enter example.com/idontexist/some-post or even ...
1
vote
3answers
1k views

Why is WordPress redirecting users to random posts after commenting?

After commenting on one of my posts, WordPress redirects me to another random post. Only after, when checking the previous post, I can see that my comment was posted. Still, why is WordPress sending ...
0
votes
2answers
218 views

301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%

Just wondering if its possible to redirect existing posts which are permalinks of just %post_name% to %post_name%-%postid% ? Is there a plugin which can pick this up? Dont want to lose rankings on ...
1
vote
2answers
658 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 ...
0
votes
1answer
174 views

Wordpress permalink issue

If i try to access my wordpress page using the native url structure i.e. for instance: www.mywebsite.com/?p=123 I am redirected to my homepage. It doesn't seem to be an htaccess issue for I tried ...
4
votes
4answers
3k views

How can I force WordPress to redirect to canonical permalinks?

In WordPress 3.1 a post can be reached a number of ways, for example each one of these takes you to the same post (where /id is the base) http://myblog.com/id/1008 http://myblog.com/id/1008/my-slug ...
0
votes
1answer
413 views

Is it possible to detect if a POST action is for a “Save Post” before the save_post action?

What I need to do is inspect the content of the post and title and based on the inspection, redirect to a different page. To do this, I need to know if a "POST" action is for saving a post. How to ...