2022 Developer Survey is open! Take survey.

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
11 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
10 views

Memberpress login redirect via shortcode is overriden by Memberpress settings [closed]

So just trying to do something super simple. Have a Memberpress site, have the login page set to a custom page, and have the login form inserted using the shortcode as per the docs here with the ...
user avatar
  • 1
0 votes
1 answer
35 views

wp-admin too many redirects issue [closed]

The frontend is working fine but when I go to mysite.com/wp-admin it shows this error: Any help would be appreciated. UPDATE: Looks like it was a permission issue. I gave 755 permission to the wp-...
user avatar
0 votes
0 answers
62 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
25 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
  • 3
0 votes
0 answers
12 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
11 views

WP-ADMIN on localhost Wampserver redirects to install.php on existing site [closed]

I am cloning/migrating my website (erichepperle.com) to localhost. I have done it many times before using Duplicator, but as a web developer I want to understand the process of manually migrating my ...
user avatar
0 votes
0 answers
37 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
27 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
14 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
17 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
19 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
20 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
34 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
  • 117
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
23 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
20 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
11 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
16 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
28 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
44 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
23 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
0 answers
40 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
29 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
30 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
29 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
27 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
9 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
33 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
0 votes
0 answers
28 views

Redirect unloggedin users

I added the following code via the cPanel to the function.php file. add_action('template_redirect','woo_check_loggedin'); function woo_check_loggedin(){ // this condition checks for certian ...
user avatar
0 votes
0 answers
26 views

Bulk redirect all post

I change my url old = /category/post-title/ new = /tips/category/post-title/ I add tips after site url for all my posts. how I bulk redirect without list one by one?
user avatar
0 votes
1 answer
48 views

WordPress redirect redirecting too many times or not at all

I am new to WordPress. I am trying to simply redirect users to a login page if they go to the account page without being logged in. I first tried adding this code to the functions.php code: add_action(...
user avatar
0 votes
0 answers
51 views

Re-Direct After Comment Submit IF Comment Comes from Sign-Up Page

After having successfully done a custom version of the WordPress comments form into a "sign up" page, I now need to re-direct the user to a custom page upon submitting the "form". ...
user avatar
0 votes
1 answer
28 views

Redirect to new domain that serves new and different content

What I want to do: Redirect old domain to new domain Redirect all urls of old domain to new domain's home page (Old and New site serves different contents) What I've done: 301 redirect old domain ...
user avatar
0 votes
0 answers
24 views

Redirect posts to new domain

Im having problems trying to redirect custom post type posts to a new domain, using an htaccess file. It redirect my no wp static pages, but it has no efect on custom post type pages. Here i my code: ...
user avatar
0 votes
0 answers
26 views

Disable redirect to homepage after successful Login, Stay on Current Page

I have built a WordPress login form using Bootstrap Modal. When logging in it redirects you to the homepage after a successful login. I want to DISABLE this redirect. I just want the page you are ...
user avatar
  • 11
0 votes
1 answer
20 views

WordPress multi domain: page redirect to main domain whenever WordPress do the URL guessing issue

I have 3 different domains for a single WordPress project (for example, www.aaa.com, www.bbb.com, www.ccc.com). www.aaa.com is the main domain. The problem is, whenever I access the page that ...
user avatar
0 votes
1 answer
36 views

Puzzled at HTTP/2 301 response header

I am running curl -I https://padelove.gr/cart with the https:// part prepended explicitly, and I am noticing that the response header is about an HTTP/2 301 redirect on the very same URL. Shouldn't ...
user avatar
0 votes
1 answer
38 views

How to redirect Subscribers on login to specific page, when logging in from a Page

I would like to redirect my Subscribers to our Member Resources page when they login, but only when they are logging in from a Page ( is_page() ). When they log in from one of our custom post types I ...
user avatar
  • 11
0 votes
0 answers
17 views

corrupted URLs - can't leave starting page

I have a big problem with my WP installation: An access to my pages is (no longer) possible via (public) URL. All calls that originally worked end up on the home page. Also, visitors can't get away ...
user avatar
  • 1
0 votes
1 answer
41 views

Find all URLs for a post

I would like to extract all the links to posts from a wordpress blog. This seems straight-forward and easy enough to do using wp-cli. For example: wp post list --field=url --post_type=post --...
user avatar
  • 101
1 vote
0 answers
14 views

Child post with numeric only slug keeps redirecting to parent

I modified the allow-numeric-stubs plugin code to work with CPTs. You can view my forked repository here: https://github.com/akshatkedia/allow-numeric-stubs WordPress is now allowing numeric slugs for ...
user avatar
0 votes
0 answers
20 views

Wordpress no permission redirection to a popup

I am currently using a custom code where if there is no permission, it will redirect to a need permission page. However I would like to transform this to a popup instead of redirection. Below is the ...
user avatar
1 vote
1 answer
27 views

htaccess rules not applied?

So here is the full .htaccess file, with code added to redirect all urls/pages to the only accessible page of the site, except content, includes and admin ones: # BEGIN WordPress # The directives (...
user avatar
0 votes
0 answers
27 views

date based redirect in wordpress

Is it possible to create redirects for posts which I created last year to a separate subdomain say old.example.com and keep creating new posts at example.com like i created a post in 2020 so it ...
user avatar
0 votes
1 answer
81 views

Automatically redirect a page to a category that share the same slug

This question shows me how to redirect a category to a page that share the same slug, but how would I redirect a page to a category with the same slug? e.g. abc.com/slug ---> abc.com/category/sub/...
user avatar
  • 976

1
2 3 4 5
37