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
0 answers
7 views

Lightsail CDN returns Too many redirects after just setting it up [closed]

I had a lightsail wordpress instance setup. It has a static IP, that static IP had an A record on Route53 pointing to my domain, everything working fine. I setup SSL using bncert a couple months ago. ...
user avatar
  • 1
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....
user avatar
1 vote
1 answer
36 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 ...
user avatar
  • 121
-1 votes
0 answers
7 views

Why is my Google Cloud Wordpress backend still unhealthy? [closed]

I've setup Wordpress on Google Cloud but my backend keeps saying that it's unhealthy. I think that therefor I am not able to reach my website. When I visit it, it replies with "no healthy ...
user avatar
1 vote
1 answer
114 views
+50

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 ...
user avatar
  • 706
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 ...
user avatar
  • 101
1 vote
1 answer
29 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 ...
user avatar
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 ...
user avatar
  • 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 ...
user avatar
  • 101
0 votes
0 answers
23 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....
user avatar
  • 1
0 votes
1 answer
26 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 ...
user avatar
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 ...
user avatar
  • 1
0 votes
1 answer
14 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/...
user avatar
  • 193
0 votes
0 answers
20 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 ...
user avatar
0 votes
1 answer
17 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 ...
user avatar
0 votes
0 answers
13 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/...
user avatar
0 votes
2 answers
19 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 ...
user avatar
0 votes
0 answers
18 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 &...
user avatar
1 vote
0 answers
50 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 ...
user avatar
0 votes
0 answers
16 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 ...
user avatar
  • 130
0 votes
0 answers
28 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 ...
user avatar
  • 3
0 votes
0 answers
69 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/...
user avatar
0 votes
0 answers
44 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 ...
user avatar
  • 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 ...
user avatar
  • 1
0 votes
0 answers
215 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 ...
user avatar
  • 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 ...
user avatar
0 votes
0 answers
17 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
0 votes
0 answers
14 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
user avatar
  • 1
0 votes
1 answer
21 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. ...
user avatar
0 votes
1 answer
25 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....
user avatar
0 votes
1 answer
35 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 ...
user avatar
  • 129
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?
user avatar
0 votes
1 answer
38 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 ...
user avatar
  • 3
0 votes
1 answer
24 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' => ...
user avatar
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 ...
user avatar
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/...
user avatar
1 vote
0 answers
40 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 ...
user avatar
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 ^...
user avatar
  • 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 ...
user avatar
  • 129
0 votes
1 answer
87 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 ...
user avatar
0 votes
0 answers
39 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 ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
0 votes
0 answers
59 views

How to return a 410 code for previously published posts now set to draft?

I'd like to return a 410 code for posts (of custom type "news") which have previously been published (and therefore have a url indexed by search engines), but have now had the post status ...
user avatar
0 votes
2 answers
46 views

Moving wordpress to different url/server creates redirect loop

I'm trying to move my wordpress site in to different server and url. How ever i seem to have a persistent redirect loop problem. I think this is not a cache, cookie or plugin problem and I am ...
user avatar
0 votes
0 answers
11 views

redirect wordpress post to new subfolder site on same domain

I have woocommerce shop and my blog post is like : https://example.com/blog-post-title Now I want to install new wordpress Blog on my sub folder : https://example.com/mag how can I redirect 301 all ...
user avatar
1 vote
0 answers
32 views

Adding rewrite rule dynamically for search results redirecting to 404 URL

We need the search url structure like the below URL : https://siteurl.com/in/chennai/accountant/ We have already a post url with same structure for single post detail page URL : https://siteurl.com/in/...
user avatar
  • 11
0 votes
1 answer
28 views

Why do my new Wordpress pages redirect to home / staging site?

Hi my Wordpress site hosted on WP Engine is wrongly redirecting to either the homepage or the prod site (mysitelive.wpengine.com). I use sucuri fire wall and wp rocket, but have tried every ...
user avatar
  • 1
0 votes
0 answers
14 views

301 redirect after removing language directories

I have Wordpress webpage with 3 languages. All articles are in different directories, but has totally same names: sample.com/article1.html sample.com/us/article1.html sample.com/uk/article1.html I ...
user avatar
1 vote
1 answer
55 views

homepage redirects to login page when user session expires

WordPress 5.9 Users trying to access the homepage when the session expires, are sent to re-authenticate. The behavior seems weird since it only applies to the homepage. Users with expired sessions can ...
user avatar
  • 115

1
2 3 4 5
38