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
1 vote
1 answer
16 views

URL Redirect on GoDaddy platform [closed]

I am the IT support person for one of our clients. We have a domain hosted on GoDaddy in one account pointing to a WordPress site located in another GoDaddy account created by our client. In the DNS ...
0 votes
0 answers
6 views

Ignoring a word/path with regex [closed]

I've be trying to do some redirects from a blog, to another. The paths would be like this: From: domain/blog/posts to: diferentDomain/blog/posts So i came with this solution: ^/blog/(.*) The thing ...
  • 1
0 votes
0 answers
14 views

Multisite image URLs incorrect in editor

I've been driving myself nuts with this one, so I'm hoping someone might be able to help. I have a Multisite with the latest WordPress version set to subfolders. The issue I am experiencing is with ...
0 votes
1 answer
18 views

Redirect user based on role when they try access a particular page

Please how can I redirect a user base on the role when they try to access a particular page? I would need the code to do this, please.
0 votes
0 answers
18 views

Regex for pdf's - Old .asp Site folder structure to new WordPress Media Folder(s)

I am in the process of rebuilding a site in WordPress that was built 20+ years ago on a .asp framework (think Dreamweaver) and am having a bit of an issue creating a RegEx for documents (.pdf, .doc, ...
0 votes
0 answers
13 views

Why when I click on a link into the WP admin panel I am redirected to a link that doesn't contains wp-admin prefix, so I obtain 404 error

I have installed a WordPress instance and I a facing the following problem. After that I access my admin panel via the URL: https://MY-DOMAIN/wp-admin I am correctly redirected to the admin panel. The ...
0 votes
1 answer
10 views

Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error

wp-admin showing ERR_TOO_MANY_REDIRECTS Error and can't let me login into dashboard but Other pages loading fine. FIXED
1 vote
1 answer
14 views

External rewrite rules missing in htaccess - Multisite

I'm trying to set up some external redirects, but it seems like they are not being added to htacccess even tho it's supposed to (I think). add_rewrite_rule('^dashboard\/([^.]+\.(jpe?g|gif|bmp|png))$', ...
  • 11
0 votes
1 answer
13 views

Simple function not working on frontend and can't figure a way to debug it

I'm trying this ultra-simple snippet on my functions.php on 2020 theme, but it doesn't work function simple_redirect() { if ( is_page(199) ) { wp_redirect( home_url(), 301 ); exit(...
0 votes
0 answers
10 views

How can I disable redirect domains?

I have 2 domains: name1.com name2.com I want to open my website with both of domains without redirect. In setting I set name1.com for main domain. But if I click name2.com, I redirecting to name1.com....
1 vote
1 answer
41 views

Redirect ignore last URL segment

I have a page on my Wordpress website that I want to effectively have a wildcard on the end of the URL. The URL is "https://www.mywebsite.com/map". I want that same page to be directed too ...
  • 121
1 vote
1 answer
151 views

How to use the HTTP API (wp_remote_get) instead of cURL?

I'm running into a problemen while trying to change my cURL request into a request using the HTTP API. Below code is my (old) cURL request. Here I'm getting some contents from an external URL. This is ...
  • 816
0 votes
0 answers
14 views

Dynamic redirection [duplicate]

I have an online websites offering courses. To try a sample lesson of a course one needs to register/login. So I there is a link on the course page redirecting the user to a registration page. After a ...
  • 101
1 vote
1 answer
36 views

How can I redirect a request to the site root using htaccess, if there's not a specific cookie set?

I'm using this code, versions of which I've seen referenced on various other sites, but it always redirects home page requests to /fr/ if the browser is set with French as a primary language ...
0 votes
0 answers
12 views

CPU overload spam - redirect link to wp-admin and new post

I noticed my wordpress website is over utilizing CPU resources causing my shared hosting to trottle slowing down drastically my website. Upon doing a CPanel inspection on resources, I found this ...
  • 61
0 votes
0 answers
17 views

redirect from old URL structure

i've just rebuilt a site with a couple of hundred products, and now i need to redirect the old URLs.. i'm using the Redirection plugin, but i'm not sure how to setup the redirects correctly ... the ...
  • 101
0 votes
0 answers
24 views

When i try to enter subdomain i'm redirected to main domain

I have wordpress site on my server connected to domain.pl and i also have my own html site connected to subdomain.domain.pl but every time i try to enter subdomain.domain.pl it redirects me to domain....
  • 1
0 votes
1 answer
27 views

Creating a redirect option for current page url

I am running a multisite network with around 8 websites. Currently, some sites have more content than others(for example, mysite.com/uk and mysite.com/dk have more posts). What I am trying to achieve ...
0 votes
0 answers
13 views

WordPress redirect to new domain name

I would like to redirect my WordPress website to a new domain but I want to do it correctly with .htaccess file. I want to redirect only the brands page, products pages, product categories, product ...
  • 1
0 votes
1 answer
15 views

Having Issue on Redirecting With Session in WordPress

I am trying to create a simple login system in WordPress using core PHP but I am getting this error message Warning: Cannot modify header information - headers already sent by (output started at /www/...
  • 193
0 votes
0 answers
21 views

Change my URL from https://www.domain.com to https://domain.com

I have migrated my site to Godaddy and Installed WordPress, but it get installed on https://www.domain.com on previous hosting it was simply on https://doamin.com. Now I am having problem as some ...
0 votes
1 answer
20 views

How to redirect non logged in mobile users to page on same site?

I have seen many like this question (like How to redirect non-logged in users to a specific page?) but none have worked. this is basically what I've come up with but it doesn't work all the time and ...
0 votes
0 answers
14 views

Custom taxonomy permalink without term, redirection to CPT slug

I have set up a custom taxonomy categorie and i have the associated CPT devis. My permalinks : https://www.website.com/categories >> Go to CPT archive https://www.website.com/categorie/...
0 votes
2 answers
24 views

Set redirect for need login

Hello, I have this code so when I place the [need_login] shortcode on a page, it redirects users who are not logged in to a Login page. The problem with this is the that it redirects them to the ...
0 votes
0 answers
20 views

Redirect Page ID, based on logged-in User Role

I am trying to accomplish the following in WordPress via the functions.php file. If user is "This Role" & If "Page ID#" is being visited then "Redirect" to this &...
1 vote
0 answers
69 views

Wordpress Shortcode to get URL Parameters $_GET['name'] redirects for no reason at all

Need some help in understanding how does WordPress Redirects work. While working with shortcode: add_shortcode('name', 'get_name'); function get_name() { return $_GET['name']; } The page which ...
0 votes
0 answers
17 views

How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes '&' to '#038;'?

I use a quick redirects plugin and it's changing my URLs after the fact and thereby breaking some of my links. I never want wordpress to change & to #038;. There is an unwanted solution to turn ...
  • 130
0 votes
0 answers
39 views

Blog post is redirecting to home page

It wasn't doing this before, and I'm not sure what has caused this to change. I have tried: clearing cache changing permalink structure, saving, and setting back again unpublishing and republishing ...
  • 3
0 votes
0 answers
75 views

Can't login to Wordpress admin panel after changing domain to use Wordpress pages as a fallback from React

we had our Wordpress page running on example.com. But now, we're developing new React website, which already has some of the webpages ready. We use Vercel to host that React website. We want React/...
0 votes
0 answers
50 views

redirect after submiting post for review

I have a frontend page that allows "Tutor Instructor" role, to create a course and this course is a custom type post called courses, when the Tutor Instructor finishes creating the course he ...
  • 5
0 votes
0 answers
15 views

Trying to re-direct users to specific page based on an ACF variable

I have a case where I have an ACF variable that is stored within a users profile and based on that variables state I need to redirect to one of two pages once the user logs in. This is just a true or ...
  • 1
0 votes
0 answers
402 views

Download file and redirect to page or vice versa

I have a Wordpress site with a custom post type called downloads. The post type has a file field added to it with Advanced Custom Fields (ACF). The downloads post type is used for download links ...
  • 101
0 votes
1 answer
31 views

How Do I Redirect Wordpress Pages but not posts?

I have a client that changed jobs. He wants to redirect all pages on the wordpress site to a specific page on that site. But he also wants to keep all the SEO from the blog posts. So I need all the ...
0 votes
0 answers
18 views

wp_redirect is only working in Chrome Network, page is not redirecting

I created a custom WordPress Payment Plugin for WooCommerce, Everything is working fine. When I try to use wp_redirect('url'); page starts to load in Browser Network, but the page is not redirecting ...
0 votes
1 answer
47 views

Disable and Hide WP-JSON

Without the use of plugin how is possible to deactivate wp-json and redirect the URL to a 404 page. Whenever someone calls example.com/wp-json it redirects it to 404 page instead of loading? I tried ...
0 votes
0 answers
15 views

How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html

How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
  • 1
0 votes
1 answer
22 views

Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in Wordpress

Please How do I achieve this? I have WordPress Default Taxonomy - Tag and a custom Taxonomy - Artist. I want to check for TAGS that have the same slug as ARTIST and 301 redirect it to the ARTIST. ...
0 votes
1 answer
26 views

How to Redirect WordPress domain.com/?anyword to 404 Page?

Recently I Found some error on WordPress sites that when someone enter a question mark after the root domain and type any word, url shows the Home Page of instance: For instance, Root Domain is abc....
0 votes
1 answer
37 views

How to read and write session data?

My website requires users to complete their profile before they can place an order. So far, I have been able to redirect a user to his profile editing page if his profile is incompleted when he tries ...
  • 131
0 votes
0 answers
6 views

URL redirection

I want to config a button so when the user click it a new tab will open and the old tab should be redirect to another URL. How can I make this happen?
0 votes
1 answer
49 views

Add more user roles to a PHP logout redirect function [closed]

I have this function I found which redirects a user to an URL based on their user role. I have pretty much no knowledge of PHP so I need some help to add another user to it so I can see how it works ...
  • 3
0 votes
1 answer
25 views

Custom payment method after payment user is logged out on thank you page

I am using a custom payment method called euplatesc for donations. The form: $postid = get_user_meta(get_current_user_id(), '_donar_post_id', true); $dataAll = array( //'amount' => ...
0 votes
0 answers
12 views

How can I stop redirecting from a search to a taxonomy archive page

I have a search form that searches through custom taxonomies, but instead of printing the results on the search page it redirects to the taxonomy archive. I leave the url before and after the redirect ...
0 votes
1 answer
21 views

WordPress link to post links to category (loop)

Mindnumbing problem. create a blog post in WP backend select category for post (e.g. podcast) click update Navigate to blog category page (https://www.bioelectricshield.com/in-the-media/category/...
1 vote
0 answers
44 views

How to redirect on login to a specific page if a specific meta user is empty

I would like to indicate that if you do not have the first_name filled in when logging in, you will be redirected to a specific page, for example /onboarding and if the first_name field is filled, you ...
0 votes
1 answer
18 views

Permalinks do not include www subdomain

I recently migrated a website which was both hosted with and without www subdomain. I configured the .htaccess to always redirect to www: RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteCond %{HTTPS}s ^...
  • 101
0 votes
0 answers
15 views

Old missing file in wp-content/uploads/ returns a 500 error, how to catch and redirect?

I have a new site running but Google has an old PDF file indexed. The PDF file does not exist at that address on the new site, it's gone completely. The odd thing to me is instead of the request ...
  • 129
0 votes
1 answer
128 views

Redirect after scrolling the page

is it possible to create a redirect only after the page has been scrooled, for example, in the middle and redirects to another page? I tried various solutions and plugins but couldn't find anything ...
0 votes
0 answers
68 views

How to redirect a child page to its parent page?

In WordPress, I need to redirect a child page to its parent page. When the parent page has password protection set, the function code I have below also protects its child pages from having a different ...
0 votes
1 answer
80 views

Wordpress Pagination - 301 Redirect Issue

I have this wordpress problem with pagination and redirects. Let's take this scenario - I have a blog on my website and it has a lot of articles, therefore the blog expands to /page-35/. Let's say ...

1
2 3 4 5
38