"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

Perform a redirect after user action

Is it possible to redirect a user in WP without the header/wp_redirect being before header()? I have a plugin that allows users to manage content they have created on the site... for example, they ...
0
votes
1answer
17 views

Wordpress Prevent 404 on missing custom post

The thing I am trying to achieve is to get data from a third party data source and display each piece of information as if it was a "post" in a WP theme. Now, the WP theme intrinsically works with ...
0
votes
0answers
16 views

Redirect from registration form to other PHP page

I want to redirect the user when he/she has registered on the site. I'm using the registration_redirect hook which works fine. However, what I'm doing right now is redirecting to a php page inside ...
0
votes
0answers
8 views

Blog page and post redirecting to home page

I am using Jobrooler wordpress theme for one of my website with custom post type. On the home page the jobs are showing and working fine for me. But when I am accessing the /blog page and posts then ...
0
votes
0answers
14 views

Stop WordPress from redirecting ?p= in custom rewrite rule to slug of page

I've written a custom rewrite rule, which should rewrite a specific case of a taxonomy url to serve a page. The rule is as follows: add_rewrite_tag('%tax_slug%', '([^&]+)'); ...
0
votes
1answer
26 views

Redirect users after first login

I want to redirect my users to a page after they logged in for the first time. I also noticed some solutions like a redirect after the user was registrated (redirect after first 48 hours) but the ...
0
votes
1answer
47 views

wp_login_form redirect problem

I have added a login form to a page template using wp_login_form(). This page template is used for a welcome/login page for an online seminar. When the user logs in I want them to be redirected to the ...
0
votes
1answer
26 views

Can't make redirect in WordPress

I'm trying to make a login form. But it doesn't redirect. It shows "Login success"; but it doesn't redirect. I also tried with: wp_redirect('myurl'); Which is correct way to redirect in ...
1
vote
3answers
46 views

Show different page for first time user

As per my requirement I need to show a page say firstpage.php for user who visit my site for first time else should show home page say homepage.php I created both this pages as page-templates For ...
0
votes
0answers
25 views

Qtranslate not redirecting according to browser language

In this website I have two problems created by qTranslate: 1) The redirect is not working: while sometimes it works at the first load of the page, going again to the same URL resets the chosen ...
0
votes
1answer
22 views

Prevent “/login” to redirect to “/wp-login”

A client has asked me to exlude "/login" as they want to have the url to lead elsewhere (to a remote system). When typing this url it automatically redirects to "/wp-login". How can I remove / prevent ...
0
votes
0answers
33 views

Remove trailing slash

I need to revert from "pretty prmalinks" to query string just for the pagination urls. (so that example.com/page/2 becomes example.com/?paged=2). It could possibly be done via a hook in to redirect ...
0
votes
0answers
18 views

Redirect 301 didn't work for one link

Google Webmaster shows that one page has got one 404 error and this is the link like "?attachment_id=123". Of course I tried to do 301 redirect (I have few working redirecions, so this function works ...
0
votes
0answers
8 views

Wordpress & AngularJS – Routes and redirects

Working on my first project with AngularJS. Pretty straightforward, but I'm wondering. I have a CPT named "project". And also a state named /project. Trying to access /project redirects to the Project ...
0
votes
1answer
21 views

Redirects only work when visitors go to pages that stop with /

I am using a wordpress plugin for redirects. My redirects look like from: /page/subpage/ to: /newpage/newsubpage/ I have a problem with the redirect above. It works when a visitor goes to ...
0
votes
0answers
19 views

How to redirect to its default language when erasing the text after .com/de?

I have a wordpress site with Avada Theme installed 3.7.1 with qTranslate-X plugin. What I'm trying to achieve here is that I want to redirect the site once I erase the text 'de' after www.site.com/de ...
0
votes
3answers
35 views

Redirect to other page when mobile

I am looking for a simple clean solution when someone visits my homepage with a mobile device. Should I use something like Mobile Detect? I've seen many plugins with lots of downvotes or crashing. Is ...
0
votes
2answers
22 views

redirect user to their profile after log in

I would like to know How can i redirect users to their profile after they log in to my website. Right now, when users log in, they get riderected to the home page but i would like for them to get ...
0
votes
0answers
12 views

Redirect specific upload directory

In a WordPress site, some data is getting fetched from a folder 'uploads/slider' using http_get function. However, the URL given in the function is 'ws/slider/list' and not 'upload/slider'. Now, the ...
0
votes
0answers
25 views

Subsite admin in redirect loop, resources on frontend are all 404 and .htaccess changes back

I have a Multisite with three sites. The main site isn't affected by any of this, but the subsites are both broken. 1) When accessing wp-admin on one of the subsites, I get a redirect loop. 2) When ...
0
votes
1answer
45 views

Changing post per page causing 404 for pagination. Need a redirect htaccess rule

i changed my wp theme and i changed the "post per page" wp setting on "reading"now because i want to display more posts on the archives pages. i m using pagination on the archives so a lot of pages ...
0
votes
1answer
45 views

How can I fix a slow redirect after form submit from frontend (no plugin)?

Below is the code I'm using for my short-coded form and to add the post. Here's a basic overview of the problem I'm trying to remedy: -This form is displayed on the page at /addmember/ -On this ...
0
votes
0answers
47 views

How to stop redirect to 404 page when I use jquery onchange function to select a value from a form field in wordpress

I'm developing a wordpress woocommerce website where I put a form where two drop down exists. where selecting a value from the first dropdown after page refresh it automatically goes the second ...
0
votes
3answers
101 views

Headers already sent error after upgrading wordpress to 4.2.2

in wordpress version 3.6 and 3.7 everything works great, but with version 4 and above I get: Cannot modify header information - headers already sent the problem line is: header('Location: '. ...
0
votes
1answer
26 views

after login that will redirect user role into a page

I am trying to create a hook that when a user login, it check the user role.. if the user role is jsa_contributor then it redirect into specific page. but it seems my code didn't work. This is the ...
0
votes
2answers
33 views

Conditional redirection with logout

I've been asked to implement a custom redirection in WordPress. It seemed quite simple at first but I have no idea how to get it right. So much that I can't even get started with it. This is how it ...
0
votes
0answers
27 views

how to redirect old blog post urls when permalinks are changed

When you have a permalink structure set to www.example.com/post-name And you want it to change to www.example.com/blog/post-name Is there any way to have the old format redirect to the new (ie. ...
0
votes
2answers
214 views

wp-login.php — redirect logged in users to custom URL

When a user login, we can easily change the redirect URL (see this, this, or this), but if the user goes to /wp-login.php, they will be redirected to the dashboard if they are already logged in. My ...
0
votes
1answer
18 views

Custom, conditional redirect on logout

I'd like to implement a custom logout function that only runs if the conditions are met. Instead it returns me to the homepage whether the conditions are true or not. Here's the code that should do ...
0
votes
1answer
27 views

Disable redirect to install.php

For example, i include 'wp-load.php' from external file. but if WP is not installed, then while i access that file, it redirects to '/wp-admin/install.php'. How to disable redirection, even if WP not ...
0
votes
1answer
25 views

How do I change the home page to the registered user's profile page

I have a custom profile page for my users. I need to have wordpress redirect the homepage to the user's profile page if they are logged in. If they are not logged in or registered, wordpress would ...
0
votes
0answers
59 views

I can't login using wp-admin

I have posted my problem on the wordpress support forum but no one has gotten back to me, I really need to figure out what's wrong. I tried copying my site to a uk domain that I had and I am sure I ...
1
vote
1answer
44 views

WordPress template_include filter not working properly

I am working on a plugin. The plugin make custom post type "product". First i use template_redirect action for redirection to single and category pages. Here is my template_redirect code: ...
0
votes
0answers
24 views

Redirect to “pre-page”

I am using the Events Manager plugin to create bookings. The site currently functions like this: Page 1: Lists all events (clicking on an event takes user to booking page - Page 2) Page 2: ...
0
votes
2answers
60 views

Changing permalink from /postname/ to category/postname/

I have a website where it consists more than 800 posts, At present my permalinks structure is /%postname%/, but due to some reasons I want to change it to /%category%/%postname%/ I have implemented ...
0
votes
0answers
14 views

WP Rewrite - some rewrite rules are ignored and instead a redirect is served

I am trying to allow any URI that's prefixed with pf/ to show a page without redirection. I do this by filtering rewrite_rules_array and simply duplicating the rules with a pf/ prefix public function ...
0
votes
0answers
22 views

Domain change question

Please help me with this situation. Now I have a site called "abc.com" with pages and blog (many articles). Permalinks is set as abc.com/%postname%/ And I am planning to move just the blog ...
2
votes
1answer
48 views

Return to where the user was, after log out

I know how to direct logged out user to a particular page or a URL, like: <a href="<?php echo wp_logout_url( home_url() ); ?>">Log out</a> But if I want the user to redirect to ...
0
votes
0answers
37 views

Subdomain redirecting to WP-Login with SSL

Wordpress is installed in the root on my server and i have a subdomain/folder with another application separate from wordpress. When I try to access it via HTTPS: //subdomain/admin it redirects to my ...
0
votes
0answers
90 views

URL masking of subdomain to main domain using .htaccess

I am facing with the following technical challenge : We have a main website running on wordpress with content in local language (Greek) on the domain www.adomain.gr We want to set up a second website ...
0
votes
0answers
15 views

I want to add some changed to register user method in WP [duplicate]

I am trying to redirect user after registration to login page with success message.At the moment its register user and keep user on signup page.I try to add code to signup.php page but it didn't ...
0
votes
1answer
28 views

Wordpress Login Page redirecting after failed login

Recently I changed my domain and my host. Initially the domain name was example.com on bluehost. Since last night I changed my Domain to example12.com and moved to other host Godaddy.com. I ...
0
votes
2answers
41 views

Redirect to archive is single post has a certain term assigned to it?

I want to redirect any single post to its taxonomy term's archive page if it has a specific term assigned to it. So, if a post of a term "series" at: domain/series/post/ I want to redirect that ...
0
votes
2answers
52 views

Add Username to URL for redirect

I need a little help with what I believe would be PHP. http://www.domain.com/author/username/achievements/ Depending on the username of the person logged in, I would like to create a URL that ...
0
votes
0answers
65 views

How to block direct access to files upload in edd folder

My site server on a shared web hosting service with Cpanel and NGINX. I want to block direct access to files upload in the easy digital downloads upload folder ( wp-content/uploads/edd ). I use ...
0
votes
1answer
43 views

Redirect Every Instance of The Author Template Pages to Custom Author Pages

What I'm looking to do is actually a simple redirect, but for the EVERY page contained in the /author/ slug. The working slug I want to redirect to is /team/. For example, if someone were to type ...
1
vote
2answers
59 views

Removing the redirect after changing a page's slug

On one of my pages I changed the slug to form a different URL. E.g. Old: http://example.com/old-slug New: http://example.com/new-slug WordPress has done it's thing of redirecting ...
0
votes
1answer
55 views

Custom permalink structure with %postname% in front of domain name

We are running a software review website, and we have a very large amount of reviews currently done, and we would like to restructure if its at all possible. I would like to know if there's a chance ...
0
votes
0answers
36 views

Redirect url with .php in url

I'm trying to redirect links like this: example.com/podcast/pod.php?show=showname to something like this example.com/program/showname/feed/. I've tried using this redirection plugin: ...
0
votes
1answer
28 views

How to display post in custom file not in archive file?

I create file content-expertises.php and display my category list. Now, When I click one my category name, it is redirect in category.php file not my custom created file like category-expertise.php. ...