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

learn more… | top users | synonyms (1)

0
votes
1answer
25 views

Redirect loop (only for multisite network admin)

I can log into http://localhost/wp/wp-admin/ fine, but logging into http://localhost/wp/wp-admin/network/ produces a network redirect loop (ERR_TOO_MANY_REDIRECTS). The site also loads just fine even ...
0
votes
0answers
15 views

How to create a php page to handle http request in WordPress

I want to have a page to handle the http request suck as xxx/app/api.php?id=7 and I create a php page in wordpress with redirecting by adding the following code to the end of the functions.php. After ...
0
votes
0answers
11 views

Customize WP Admin Login Page and Restrict Access

I am a newbie to WP and by late trying my hands on customizing admin login page. So far I have made a custom login and registration form which allow access only using e-mail address. I need to allow ...
0
votes
0answers
14 views

Blog posts redirecting to random 404 pages

I cannot figure this one out, we have a site with 92 blog posts published. Of them, 3 do not work. When clicking on them in post list they go to 404, same when click view post or preview from the ...
0
votes
0answers
130 views

taxonomy term in URL slug won't forward to the correct term for custom post like it does for default categories/normal posts

so I notice when you type the URL of a post with a category (eg category5/post), it will automatically forward to the correct category in the URL (eg category5 changes to category1) if the category ...
0
votes
1answer
29 views

Redirect User to login page

Well I am newbie to WP and the question may sound duplicate but even after trying for few days I can not make this work. I have integrated a custom login and registration form in my WP site which is ...
0
votes
2answers
16 views

Infinite Redirect Loop after moving to subdirectory

I installed WordPress locally and created a theme, which worked fine. Now, as I wanted to deploy the site to a webserver via FTP, I got stuck by an 301 Redirect loop which makes it impossible to ...
0
votes
0answers
15 views

Add second permalink to custom post type

For a clients print advertising they would like to be able to create a shorter URL of a custom post type which they can use in their ads. Of course it would be possible with on of the many redirect ...
0
votes
1answer
21 views

If term and page have the same slug, how can I view the term archive?

I am using a custom taxonomy with the term slug 'nursery'. I'm also using a page with the slug 'nursery'. I can view the page fine, but trying to view the 'nursery' term archive page as fetched by ...
0
votes
1answer
22 views

Error 404 wordpress redirecting URL

i'm having problems after trying to redirect my website with wordpress. I wanted not to have something like that: "www.example.com/wordpress/". So I did that in the wp-config file: ...
0
votes
0answers
15 views

Wordpress password protected page redirects to admin login on first try

When I password protect my pages, and I enter the correct/wrong password, on the first try, it brings me to the admin login page ( wp-login.php?action=postpass ). Lets say I go back and enter another ...
0
votes
0answers
35 views

I'm doing this single page website the right way?

I'm making a single page web site using WordPress and I want to know if I'm in the right direction, and if this is the best way do it. First I'll show how the website is structured, it has 4 pages: ...
0
votes
0answers
12 views

Stop redirecting to posts not in a category / duplicate slugs

I have multiple posts with the same title, e.g. /states/new-york /cities/new-york /counties/new-york but Wordpress doesn't allow duplicate slugs, so they appear like: /states/new-york ...
0
votes
1answer
27 views

How to redirect all pages of a custom post type [duplicate]

Here's the deal. Let's say I have a custom post type called "subscriptions". Under this post type there are pages like the following: mysite.com/subscription/my-first-subscription ...
0
votes
4answers
65 views

Missing domain http://./wp-… in redirects

I am migrating my WP website from staging to production and I have a problem with Dashboard access. When I try to access http://<domain>/wp-admin.php it redirects me to ...
2
votes
0answers
18 views

Clarification on auth_redirect()

Trying to secure some pages redirecting non-loegged-in users to the log-in page, i found auth_redirect() function here Docs says "Checks user is logged in, if not it redirects them to login page". ...
0
votes
0answers
11 views

How to redirect failed register?

I use a simplistic invite code register system. When a person puts a wrong invite code on the text field and press register it appears: Cannot add or update a child row: a foreign key constraint ...
0
votes
0answers
8 views

Multisite subdomain is redirected to home page of main domain

Multisite subdomain is redirected to home page of primary site. I cleared cache and disabled plugins. The problem persists. This happened after I forced www. (.htaccess) to resolve issue with server ...
1
vote
1answer
52 views

Force HTTPS 301 redirect with hook

I am trying to force a 301 https redirect with hooking into the 'template redirect' function. I want not doing it a htaccess because when I update my permalinks, htaccess with https redirect ...
0
votes
0answers
34 views

You do not have sufficient permissions to access this admin page

I got a problem with the "You do not have sufficient permissions to access this admin page." after logging into my wordpress, unlike other problems, mine occurred after i logged in my account into my ...
0
votes
1answer
24 views

Check if redirected from a specific page template

I have a page template, which redirects to the homepage using this: wp_redirect( home_url() ); Now, on the homepage is it possible to check if it has been redirected from a specific page template ...
0
votes
1answer
27 views

Unwanted slug in my website

There is an unwanted slug /question/ in my WordPress website. Slugs are automatically changed to /question/ when I open many pages. I have thoroughly checked my phpMyAdmin and I have no /question/ ...
0
votes
0answers
22 views

Htaccess https 301 problem

Since 2 weeks I have installed an SSL certificate on my domain. I have changed my base urls to https so my canonical url is https now. But now I need to force to https. I did this with the below ...
0
votes
2answers
21 views

Redirect before post page

I have post list page of a category. I want to redirect not logged user to login page before he views the post page. I tried with wp-members plugin, but not. In wp-members plugin, there is a hook to ...
0
votes
0answers
27 views

HTTPS 301 redirect doesn't work anymore

Since a few weeks I have a SSL certificate installed on my domain. The HTTPS version of the website works fine, and I changed all my internal urls to HTTPS. I have set my urls in settings > general to ...
0
votes
1answer
20 views

unwanted redirect

Built a custom theme for a client, everything has been working great for the last month. Today I noticed the "Aircraft" page was redirecting to the front page. Checked everything, refreshed ...
0
votes
0answers
42 views

Ajax login without redirect/reload

I've successfully created a login with Ajax, in part to this tutorial: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/ My problem is that it requires a redirect at the end to ...
0
votes
0answers
73 views

How to redirect after login getting a variable from url (for example with the language)

I use the default login form. I want the users with certain role be redirected after succesfull loggin to the home page, but in the language that user is using in the moment of loggin. This is an ...
0
votes
0answers
103 views

Subdomain-multisite with root blog in www.domain.com in Nginx

I have WordPress multisite running on a LEMP stack in a Laravel Homestead instance. I installed the MS network using subdomains inside a domain domain.app. I'd like the domain.app be accessible only ...
0
votes
0answers
23 views

Usage of wp_send_json_success and wp_redirect at the same time

I have to send the success response to ajax if user filled the form fields successfully or not on the client side and redirect to the other page which finalize his authorization at the same time on ...
1
vote
1answer
172 views

Redirect to referring page after logging in

I am not using any custom login plugins or any bespoke code. A few of my pages have got this bit of code in them at the very beginning. <?php if(!is_user_logged_in()) ...
0
votes
0answers
21 views

Best way to redirect a few URLs to new ones

What is the best way to do a 301 for a few URLs in the same domain? At the top of my .htaccess file I put like this for 4 four of my deleted URLs. Redirect 301 /services/old-page-one/ ...
0
votes
1answer
28 views

How to redirect from plugin page

After processing form data in one of plugin file I need to redirect to some other page. When I used wordpress function or php wp_redirect()/header() it shows me error like "header already send" html ...
0
votes
2answers
31 views

How to set 301 redirection after moving WordPress blog?

I have moved my wordpress blog to new domain. Old Address : domainname.com/blog | New Address : newdomainname.com Please pay attention about old address and new address. Now I want to redirect all ...
0
votes
0answers
30 views

WP behind haproxy load balancer: $_POST being reset

So here's the sitch: Load balancer (haproxy) delivering to 3 web servers and a database server, 5 servers in total with memcache sessions being shared between the web servers. I can confirm that ...
0
votes
0answers
38 views

Wordpress install enters an infinite loop

I am really struggling with this one - hopefully someone here can help... I am installing a brand new, fresh version of Wordpress v4.0 (A task I've performed easily 100+ times before without ...
0
votes
1answer
26 views

Redirect after permalink changes

In old site I had the permalinks like: www.example.com/q-html.html When I change my old site to WordPress 4.0, I set the like: /%postname%/ When the URLs come up in a Google search, the user is ...
0
votes
0answers
17 views

Multisite : mapping main domain with a subdomain, is this thing possible?

I've some weird stuffs. Is is possible to map the main domain of a subdomain multisite install? To me it's not but maybe I'm wrong. I'm using a sunrise config. For now it triggers redirect loop in ...
0
votes
1answer
130 views

HTTPS to HTTP rewrite rules not working as expected

I'm struggling at getting these rewrite rules to work and was wondering if someone can point out my error(s). The following should redirect a user to HTTPS if they are at the login page or in the ...
0
votes
1answer
65 views

How to redirect correctly a root domain to a subdomain in a subfolder?

The next .htaccess code redirects example.com (from /public_html root folder) to the subdomain1.example.com (to /public_html/subdomain1 subdolder) and an old page register to a new one at ...
0
votes
1answer
23 views

How to move a https website back to dev and access the admin?

I have a live WP site that uses https, when I move it back to a dev server that's http only I can't access the admin because it get's redirected to https. This only happens when I try to use the ...
0
votes
1answer
38 views

Log out and redirect to different URL

I have a sign out on my site to log out of Wordpress When logged out I would like to redirect uses to a different URL. I'm using this in the functions.php add_action(' wp_logout ',' ...
0
votes
0answers
33 views

Logging back into WordPress after logging out and having issues with 'loggedout=true' in redirect URL

I have custom login form that displays a logout link after a user has logged in. I'm running into an issue when clicking log out. Wordpress redirects the user to a url with the parameter ...
1
vote
1answer
50 views

Redirect to page 2 after comment

I would like to have commenters going to the page 2 of a paginated post. My posts are separated by the <!--more--> tag so i have the www.site.com/post-title and www.site.com/post-title/2/. I ...
0
votes
1answer
117 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
0
votes
0answers
22 views

How to prevent redirect_canonical from redirecting media

I have an issue where there's a media file with the same url as a post (egg-bake.pdf vs. egg-bake) The permalinks are set to mydomain.com/post-name. The problem is that since egg-bake.pdf was ...
0
votes
3answers
66 views

Is there way to redirect all blog post pages to Home page?

I am creating a social bookmarking site using WordPress. I am using a custom field to store the web URL. Then when a user clicks the Title, it redirects to the original blog post page. Please check ...
0
votes
1answer
17 views

redirect “about author” code to about page

I'd like to redirect/change this code <a href='" . $wp_about_author_author['posts_url']. "' title='". $wp_about_author_author['name'] ."'>". apply_filters( 'wp_about_author_name', ...
0
votes
1answer
18 views

Redirect first time comments

So I want to add a comment redirect code to my comment form. I know I have this part right here: <input name="redirect_to" type="hidden" value="http://domain.com/thank-you" /> So what I want ...
0
votes
0answers
18 views

use root url for every permanent link in permalink structure

I would like to redirect each "view post" or similar button in the backend to the root Page. I now just entered a / in the custom structure of permalinks. Could this give me any issues, with e.g. ...