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
0
votes
2answers
873 views

Redirect all links form a category to new links on new category

hi i just modify a category link from domain.com/test/ to domain.com/demo/ all my post have now the new url domain.com/demo/post-name and now i want to redirect all 1000 links from which includes ...
0
votes
1answer
7 views

Redirect Category Media 'URL' when clicked

Currently when I view the Media page the URL is /category/media/. I need the URL redirected to /media/. What's the easiest way to do in WordPress
0
votes
1answer
14 views

How do I write a subdomain redirect?

I'm trying to write a redirect so that anyone who tries visiting "www.example.au" is directed to "www.example.com", but I'm not sure how to do that in my .htaccess file. So far, I'...
0
votes
0answers
8 views

Gutenberg Not Working with Trailing Slash Redirect in .htaccess File

I have updated my .htaccess file with non-trailing slash to trailing slash redirect. <IfModule mod_rewrite.c> RewriteCond %{REQUEST_URI} /+[^\.]+$ RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,...
1
vote
1answer
691 views

Login form from shortcode doesn't redirect after successful login

So I am trying to display a working version of the default wordpress login form on one of my pages. There is code in the functions.php file that creates the shortcode and as far as I know it works ...
0
votes
2answers
793 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
0answers
12 views

Need help resolving domain redirect chain [closed]

My WP website redirects from http://www.example.com/ → https://www.example.com/ → https://example.com/ How do I resolve this issue and redirect from http://www.example.com/ → https://example.com/? The ...
0
votes
0answers
14 views

MyListing + WCFM - Change path on click (redirect?) [closed]

Im attemptng to tweak MyListing and WCFM so they can play nicely together but im having some trouble. The main issue is that when a user has registered and created a listing it creates the url domain....
0
votes
1answer
571 views

wp-login.php redirect problem

I have plugin which redirects myweb.com/wp-login.php to custom login page myweb.com/member-login/ I want to check if current page is either wp-login.php or /member-login/ but does not work. code ...
0
votes
1answer
26 views

Understanding Redirects

I have a WordPress website that is working well. The website is shared hosted on a popular hosting site. It was migrated/transferred from a different hosting site to the current one (this point is ...
0
votes
2answers
717 views

Multisite, multiple domains per site

I currently have a multisite install with 4 sites and 4 domains, like so: Site 1 -> site1.com Site 2 -> site2.com Site 3 -> site3.com Site 4 -> site4.com There was a typo in the domain of Site 3, ...
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 ...
0
votes
0answers
10 views

How to automatically redirect category pages (301) when changing the location of a category in the hierarchy

How to get it so when you change location of the category it automatically 301's to the new category location. Example> I give child a parent a) /category/child > b) /category/parent/child Both ...
0
votes
1answer
1k views

Right hook to redirect frontend visitors while respecting rest api plugins to run first?

I don't need a frontend on the WP site. All visitors will be redirected to an external url where my frontend app lives. I now have the following code in the root of my theme functions.php: if ( ! ...
0
votes
1answer
606 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 ...
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 ...
0
votes
1answer
2k views

Too many redirects error when change of base url

recently I got to manage a Wordpress blog (so I don't know of things made before) and to start doing some edits on it I did a local docker compose as sandbox. When I copied the contents (Wordpress ...
0
votes
0answers
13 views

how to redirect /% postname%/ to /% category% /% postname%/

how to redirect /% postname% / to /% category% /% postname% / in a massive way example : https://wesite.com/personalizacion/ to a https://wesite.com/category222/personalizacion/ I have many url so ...
0
votes
1answer
574 views

How to redirect a wrong search on my wordpress website to the error 404 page?

For example, my wordpress website is www.example.com. If I type example.com/abcdef or any other url that does not exist, it redirects to my custom 404 page without any issues. However, when I search ...
0
votes
0answers
10 views

wordpress+docker+apache mod proxy redirects to http://localhost

My environment is, a docker container running wordpress on apache can be accessed via ip:port . The host environment has an apache instance which redirects traffic that comes to http://myurl to ...
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 ...
0
votes
0answers
10 views

Redirect_uri won't redirect to appropriate settings page

So I have a functionality on my WordPress configurations for Instagram that has a redirect URI and for some reason, it won't redirect to the appropriate page after being authenticated. The code is set ...
1
vote
1answer
1k views

Redirect customer to login if not logged in when proceeding to checkout

I'm trying to redirect customers, who are not logged in, when they push the "proceed to checkout button" on my cart page but nothing happens. Here's my code: function custom_redirect_checkout(){ if (...
1
vote
2answers
904 views

Site loads very slowly (4-5 minute load time)

I'm hosting a WP site on a VPN so I'm doing all of the server management. A while back, I simply renamed my WP folder so that it would be inaccessible. Now I need it to be accessible again and so I ...
2
votes
2answers
8k views

How to turn off redirection from 'domain.com/login' to 'domain.com/wp-login.php'

I want to install something different than wordpress under 'mydomain.com/login', but WordPress automatically redirecting this link '/login' to '/wp-login.php'. Where can I turn off this redirection?
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 ...
0
votes
0answers
16 views

Pass query params between pages

I have a link which I send to customer email with some seo params. https://wordpress-example.com/?test=123 but after go to another page I missed it. How to deal with it and pass this parameters ...
0
votes
0answers
6 views

How do i redirect the user to the last used page, after login

I am building an online store and don't want the user to be able to access the Checkout page unless he is logged in. So i've made a redirect if he clicks Checkout, that sends him to the login page by ...
0
votes
2answers
993 views

How to redirect users without permission to view content to a custom page?

I want users who don't have permission to view content to be redirected to a page when they are presented with the default "Nothing Found" page. I've already redirected 404s but this is not exactly a ...
0
votes
0answers
16 views

multisite 404 subfolder same name slug as site

To keep this short, as a disclaimer, I'm not that versed with WordPress, servers, etc, so I might talk gibberish: The Issue 🠺 I have a multisite root, let's call it msite.com 🠺 This site spawns ...
0
votes
1answer
24 views

Extending page urls without getting a 404

I'm using a shortcode on some of my pages and need to add a gender to the page urls. For example, if the page slug is "/ninjas/", I need to be able to use urls like "/ninjas/female/&...
0
votes
1answer
551 views

Multisite redirect loop for a single www domain

I have been using WordPress multisite for several years without a problem. At some point in the last few days one of my many multisite domains is stuck in a redirection loop. The domain is http://...
1
vote
5answers
6k views

Wordpress redirecting to 127.0.0.1 when accessing the site from a remote device

I've installed a Wordpress site on my local Apache Ubuntu 18.04 server with a fixed IP 192.168.100.150. The website is working fine locally (localhost/wordpress), but when I try to open the site from ...
1
vote
1answer
2k views

https - too many redirects

I have recently enabled SSL certificate and I'm tring to use it in my wordpress site. My website's url is All plugings are disabled. I replaced define('WP_HOME','http://mywebsite.com'); ...
0
votes
3answers
1k 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
1answer
887 views

change home_url and site_url but don't redirect to home_url and site_url on load

I have two domains uat1.example.com and uat2.example.com pointing to same wordpress installation. I want to change the home_url and site_url for all links in the website to uat2.example.com, but it ...
0
votes
0answers
23 views

Redirect logged in users to their primary dashboard

I have a WordPress multisite installation. When the user (who is not a super admin) logs in and then opens the dashboard of the main page (example.com/wp-admin), he gets the message below: You ...
1
vote
1answer
945 views

After logout browser's back button into twenty sixteen theme profile

I have tried numerous ways to prevent the browser's back button from allowing someone from using it to go back into a visitors logged out profile. The codes I used were supposed to prevent the browser ...
0
votes
0answers
16 views

Redirect empty search to another page

I am using the following code to change the url of my search results page: function wpb_change_search_url() { if (is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/suche/...
0
votes
1answer
25 views

Disabling the X-Redirect-By response header

Is there a clean way to not have WordPress send the X-Redirect-By response header when redirects happen? I'd like to disable it in order not to expose information about our software stack. Something I ...
0
votes
1answer
968 views

How to override post-new.php with custom template

How can i override post-new.php with my custom template. When i include file or simply redirect i see my template but admin sidebar is missing. I know it is not simple.
1
vote
1answer
657 views

How to pass a message using template_redirect

I'm using the following function to redirect a post to another using custom field. It's working just fine until I added the line#8 to pass an ID so that I can grab it in to the post (to where was ...
1
vote
1answer
1k views

Wordpress permalinks and javascript redirection

I need to use javascript redirection in one of my scripts. With /%postname%/ WP permalinks structure redirection works like it should but with default it always redirects to home page. /%postname%/ ...
0
votes
0answers
13 views

Wordpress still redirects after updating siteurl and home options

I'm trying to set up my Wordpress site on localhost. For other sites it's always worked when I've set the siteurl and home values in the wp_options table to the local URL (e.g. http://localhost). ...
0
votes
0answers
18 views

Remove Trailing Slash From Root WP Directory

I have WP installed in a directory above the domain ( example https://example.com/folder/ ) I want the WP index page to get accessed without the trailing slash ( example https://example.com/folder ). ...
0
votes
1answer
824 views

Custom redirects with using SQL

We have pages with urls like this: http://example.com/?page_id=3&user_id=5 http://example.com/?page_id=6&user_id=9 etc. page_id and user_id located in table MySQL Database. And this table has the ...
0
votes
1answer
13 views

Redirect Logged In User if page is wp-login.php and $_Get['level'] = X

I have read various post about redirecting a logged in user if the go to /wp-login.php. However, my case is a little different. I want my users to click a link that takes them to "/wp-login.php?...
0
votes
1answer
910 views

404 redirect based on url

I have a link like this: https://www.example.com/bh-job/38/?title=digital-marketing-intelligence-expert When I surf to the page I'm redirected 404 page because the page doesn't exisit. The page ...
0
votes
1answer
759 views

One set of Child Pages redirecting to Home page?

I've searched multiple forums, and not finding anything quite like this... On a site I manage, there are several parent pages with links to child pages embedded in images. Each image links to the ...
0
votes
1answer
1k views

how to redirect page after delete post inside a post page?

so on theme single.php i want to put delete button so they can delete the post directly. After the post deleted then the page will redirect to profile page. here's the delete button html <a class=...

1
2 3 4 5
34