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.

592 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
2k views

Wordpress multisite subdirectory redirect infinite loop issue

Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
4
votes
2answers
948 views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
3
votes
1answer
1k views

Home page with Polylang redirects to other page

On my website : https://www.littleguestcollection.com/, the homepage is redirected to other page (this one : https://www.littleguestcollection.com/fr/hotels/lux-tamassa/). I have no idea what is the ...
3
votes
0answers
980 views

302 redirect to signup with nginx reverse proxy

I have a working multisite install configured in Apache. The server is a Debian GNU/Linux 8 amd64 and Wordpress is version 4.6.1. Apache is version 2.4.23 as available in the Debian repos. It's a live ...
3
votes
0answers
836 views

Create a php callback/endpoint for an OAuth script

I am attempting an OAuth call to a 3rd party service but having issues with my callback script. I have a file oauth.php that is within my plugin directory. First question, do I need to go to the url ...
3
votes
1answer
1k views

Site redirects to wrong url when saving settings

I have a subdomain: https://blog.example.com/ I forcibly redirects to subdirectory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. Now the website and admin ...
3
votes
1answer
237 views

Using a custom field value to redirect away from a 404 page

I’m moving from an old CMS to WordPress. The old articles are saved as posts and the new WordPress permalink is %post-id%. The old URL slug is unique and saved as a custom field for each post; the ...
3
votes
1answer
161 views

WordPress Multisite - Multiple subfolders for blogs

I created a network in blog.animals.com, the network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each blog,...
3
votes
0answers
163 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 /cities/new-...
2
votes
2answers
23 views

Redirect subdomain homepage to domain specific page in wordpress multisite

I have a wordpress multisite with one site to domain.com and another to materials.domain.com At the domain site I have a page domain.com/materials I'd like to redirect the materials.domain.com ...
2
votes
0answers
24 views

How to redirect user to specific page based on the input password

I would like to ask if anyone has a ready solution for WP or recommend a plugin for password-based pages, namely: I create: a) subpage 1 and a password for it, e.g. 1234 b) subpage 2 and a password ...
2
votes
1answer
32 views

How does WordPress redirect without using .htaccess?

As explained here, WordPress has Automatic URL Redirects. However, it's not based on .htaccess which WordPress keeps to a minimum. Let's say your "siteurl" setting (in the GUI) contains "www.". If a ...
2
votes
0answers
146 views

Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?

When you set up WordPress to use multisite, you're directed to modify your .htaccess file to use one of the following, which are outlined in the admin and the WordPress documentation: Subfolder ... ...
2
votes
1answer
447 views

Specific URL has 403 Forbidden status code

I'm debugging a Belgian WP website: slotenmakerbelgie.com. The problem is that I get a forbidden status on a specific URL: slotenmakerbelgie.com/error/ (with and without trailing slash at the end) I ...
2
votes
1answer
359 views

Bulk 301 redirect for custom post type

I've amended the URLs for my custom post type from: url.com/jobs/job-name to url.com/jobs/job-location/job-name Problem is, because this isn't a standard rewrite wordpress doesn't do the 301 ...
2
votes
5answers
104 views

Redirect after users complete profile form

I have a user registration form implemented and working correctly on the front end of a website. My main issue is that I would like to redirect a user after completing the profile form. My idea ...
2
votes
3answers
144 views

How do I redirect a user when he is logged in after clicking on a menu

I would like to redirect my logged in users automatically to a next page if they press a button on my menu. I would like to make it that if you're not logged in you'll get on a registration page and ...
2
votes
1answer
791 views

$_SESSION variables lost during OAuth callback

When I attempt an OAuth handshake, the first step is a GET call to obtain an access code like so. # Redirect to request authorization code $url = $this->get_authorization_url(); header("Location: ...
2
votes
0answers
571 views

Import Wordpress Post Slug with Forward Slash

Building a news site in Wordpress. Importing articles from old, custom-built site. I want the imported URLs to be the same, to preserve SEO equity. The URLs should look like: site.com/category/...
2
votes
1answer
94 views

How do I redirect users after submitting a replies for moderation on bbpress?

After a user submits a new reply for moderation, the forum shows up again the same page, and with no explanation that the reply is awaiting moderation. Can I redirect the user to another URL with an ...
2
votes
1answer
82 views

Stuck in redirect loop after using wp_login action

I'm stuck in a WordPress redirect loop which happened after hooking into the wp_login action. The strange thing is that I've already removed the piece of code in question, cleared cookies and ...
2
votes
0answers
188 views

Multisite Redirect issue

I had a working instance of multi-site wordpress running on version 3.4. I have upgraded this to 4.7. Everything seems to be working fine except that when I login to the sub-site it is redirecting me ...
2
votes
1answer
110 views

Strange redirection issues on wordpress from ssl with padlock to ssl without padlock

First time posting here so hopefully Ive got the right question in the right place. I recently moved servers and then decided to add a ssl certificate. Since the move traffic has plummeted. Looking ...
2
votes
0answers
289 views

How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url

I have the following code which redirects a user of a multi-site to their respective sub-site based on their primary blog url when they log in from the main site. add_filter('login_redirect', ...
2
votes
0answers
66 views

Why is there an intermediate redirect to https://public-url.org/wp-admin?

I have the SITE_DOMAIN set as foo.example.com, this has a SSL for *.example.com http://example.org, is the url for the frontpage, this works. There is no certificate for example.org. Now, when I ...
2
votes
2answers
5k views

Disable domain redirect

Desired behavior: http://www.situationware.com should stay at www.situationware.com, no registration required. Currently wordpress is automatically redirecting to the Amazon hostname ec2-107-22-241-...
2
votes
3answers
282 views

Wordpress within specific sub-directories, implicitly not root

I have an existing application running at my website root now. Using .htaccess, would it be possible for a single Wordpress installation to manage sub-directories? For example, /press/, /careers/, /...
2
votes
0answers
2k views

Custom Registration page - prevent redirect to wp-login.php?action=register

I already have a custom login from built with the following code: add_action('login_redirect', 'jwh_redirect_login', 10, 3); function jwh_redirect_login($redirect_to, $url, $user) { $url = current(...
2
votes
1answer
843 views

Firing a function AFTER redirect

I am using a function that redirects the user to a custom page, rather than wp-login in the event of errors. In my case I am using the Http Referer function to send the user back to the same page ...
2
votes
1answer
444 views

Hiding WordPress behind IIS redirects

We have a main .NET application that I do not have much ability to change, but we would like to move some of the links that are on it to WordPress so that marketing can update them on a regular basis ...
2
votes
2answers
2k views

Why wordpress multisite redirect to wp-signup if site exists?

I just create a site on my Multisite domain (example.com), for instance site1.example.com After this, I try to enter on https://site1.example.com/wp-admin, but I'm redirected to https://www.example....
2
votes
2answers
2k views

Remove Query String from URL on Redirect - Redirection Plugin

I am trying to remove the query string from my URLs when I redirect them but it is preserving them. I can't get the regex right. Also, I have multiple templates that redirect to different urls so I ...
2
votes
1answer
158 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 the ...
1
vote
0answers
14 views

Wordpress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing

After a few weeks of head banging... I am very near to completing a local development environment for my WP Multi-Site Installation. The final problem that I have (wishful thinking), is that the ...
1
vote
0answers
10 views

List / Get post redirects

In WordPress, when I change the slug of one of the posts, WordPress generally is able to automatically redirect it. We're using WordPress as a backend for a SPA, and we aren't able to use these ...
1
vote
1answer
9 views

Redirecting to old domain after migration website

Could someone help me with restoring my website (with new domain name)? I have a database backup and when restore it, wordpress is redirecting me to old website and domain. I changed site url in mysql ...
1
vote
2answers
37 views

Redirect all post into some category to url without category

I need to redirect about 200 post into category "ricette","svezzamento" and "alimentazione" to url without category. I have this code but not work. add_action('template_redirect', '...
1
vote
0answers
14 views

redirect Login problems

I use this code in my funtions to redirect all the people without login to my login page, but the link "lost my password" don´t work and continue redirect to login page. Can anyone help me? Thanks ...
1
vote
2answers
14 views

Redirect HTTP to HTTPS for all sub domains (blog posts)

I have a Wordpress site functioning as a blog site on a website. The main website is just basic HTML it is only www.example.com/blog which has the WordPress site. I have installed an SSL certificate ...
1
vote
0answers
27 views

wp-admin - 404 after custom login form

I create custom login form in my page with this code: add_filter('login_redirect', 'my_login_redirect', 10, 3); function my_login_redirect($redirect_to, $requested_redirect_to, $user) { if (...
1
vote
0answers
67 views

Regex expression for redirecting image URLs to another folder

I have changed the upload folder to a folder called "images" in the root folder by entering define('UPLOADS', 'images'); inside wp-config.php file. My Media settings had the images organized into ...
1
vote
0answers
15 views

Redirect some of the languages on a multi-language site

I have a site that uses WPML to display three languages. EN - www.domain.com FR - www.domain.com/fr/ ES - www.domain.com/es/ I want to set up redirects so that all of the EN and FR pages (home and ...
1
vote
2answers
21 views

Redirect already logged in users away from a page to a specific page base on user role

I'm trying to accomplish this simple task through different plugins, but I can't find the right one for different reasons. I have a Login Page with a login form. When user logs in, he's redirected to ...
1
vote
0answers
27 views

Hide Login information in Account settings in Buddy Boss

First time working with Buddy Boss. I managed to customize the navigation items on the profile page, but I can't find a solution for the Account settings page. What I'm trying to achieve is to hide/...
1
vote
0answers
14 views

Always redirect current user to certain page

What code do i have to use to always redirect a certain user (or role) to a certain page? *Example: IF Logged in & current user = Harry Then Redirect to domain.com/harryspage IF Logged in & ...
1
vote
1answer
30 views

Redirect subscribers to last viewed page after log-in

I want users "subscribers" to be redirected to the page they last viewed. At the moment, users are redirected to their "myaccount" profile page (my-account.php). I am trying to figure out how to ...
1
vote
0answers
7 views

Redirect all requested url to new url

i want to redirect all requested url in wordpress to new url, for example : domain.com/c/camera to domain.com/product-category/camera How can I do this in htaccess?
1
vote
0answers
9 views

301 redirection editing .htaccess doesn't work

I set up SSL certificate and submitted to the hosting service. It says it is connected to Port. I wanted to redirect http url to https, so I edited .htaccess file with a code as below in the root ...
1
vote
1answer
30 views

WP site in infinite redirect loop

UPDATE: In Cloudflare - Despite being in DEV mode, I turned OFF redirect to HTTPS: and this got past the infinite loop. However, if you use the 301 Redirect checker, you can see it is going from https:...
1
vote
2answers
53 views

Change links automatically to affiliate links

My goal: I want external links to shops I'm affiliated with (for example amazon) to automatically get the affiliate ID attached to it. Example: link I put in my blog post editor https://www.amazon....

1
2 3 4 5
12