Skip to main content

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

Non-existent URLs/slugs redirect to default Posts page

I've taken over a friend's website from a shady developer. After relaunch I find that the browser lands on the default Posts page ("/blog" in this case) for any slug that isn't an active ...
David's user avatar
  • 1
0 votes
0 answers
13 views

Are post permalinks and wp_redirect() redirections saved in browser cache?

Permanent 301 redirections are stored in client browser cache. Theoretically this means they cannot be modified after they has been set, because browser will just follow the initial, cached ...
Tahi Reu's user avatar
  • 298
0 votes
0 answers
17 views

Removing /wp in Permalink URL of subdomain led to inaccessibility to WP Dashboard

I am a beginner and learning to develop a website through practicing. Basically using Elementor Plugins. When I noticed my Home/Front Page URL https://kuluguskham.cskulung.com/wp I thought the last /...
Chandra Singh Kulung's user avatar
0 votes
1 answer
14 views

Processing data and redirecting with query string

I am a WordPress and PHP newbie, or at least I haven't coded any PHP since PHP 5 (about 12 years). Our site needs a custom thank you page with a form embedded. I have done all the research I can and ...
pacmaninbw's user avatar
0 votes
1 answer
18 views

How to Dynamically Switch WordPress Front Page Without Causing Canonical Redirect?

Question: I'm trying to dynamically switch the front page of my WordPress site based on certain conditions (e.g., whether a user is logged in or not). I have two specific pages that I want to set as ...
Dejan Dozet's user avatar
0 votes
0 answers
11 views

Wordpress multisite with different sites for every language. How can I set the site based on the users browser location or language?

I have a wordpress multisite with Elementor Pro and different sites for every language (name.com and name.com/es) How can I set the site based on the users browser location or language? (Without any ...
Ester Batllori's user avatar
0 votes
0 answers
17 views

Forward and mask implementation not working,

I'm trying to implement forward and masking of a url. I have a page hosted on vercel.com as mynewpage.vercel.app. The rest of my page are hosted on Wordpress on myotherpages.com. I want for when the ...
Latifah President's user avatar
0 votes
1 answer
33 views

Running non-Wordpress PHP files

It seems that Wordpress has changed the default .htaccess file so that you can no longer run different PHP code within the a subfolder. It also states that the block in the .htaccess file is ...
Exit's user avatar
  • 319
0 votes
0 answers
56 views

Why Does My Website Redirect to HTTP Before HTTPS When Accessed Without a Trailing Slash?

When I enter the URL https://mywebsite.com/journal (without the trailing slash) and check the "Network" tab in the browser console (Inspect Element), the following redirection sequence ...
Anil Chauhan's user avatar
0 votes
2 answers
40 views

Wp-admin wrongly redirecting on multisite

I have a Wordpress subdirectory multisite configured on Nginx, with Cloudflare CDN. I've set all up on Nginx and wp-config.php according to other websites I have functioning correctly with the ...
Ana's user avatar
  • 11
0 votes
0 answers
13 views

How to Setup 2 Domains on a Single Wordpress (Regions Filter)?

I know I can use multi site but what I want to do is different so guide me My country is filtering my domain regularly and since I'm getting all my traffic from google search I need to change domain ...
AghaFarokh's user avatar
0 votes
0 answers
14 views

Redirect from subdirectory to WordPress plain permalink

I am hoping that this is a simple question, and if not would appreciate pointers for where I need to read up on this or post the question. I would like readers of print media to have a simple URL to ...
Joe Ryder's user avatar
0 votes
0 answers
34 views

Redirect to current URL and append specified URL parameter on unsuccessful login through Elementor login form widget

I have the following code running in the Code Snippets plugin, which works the way I need it to work for the most part. Basically I have the Elementor login form in a popup on my website, that way, a ...
David's user avatar
  • 1
0 votes
1 answer
43 views

Redirect to File attached to a Post using ACF

I'm trying to redirect users directly to the URL of the file located in a post using a File field from ACF. Something like: <?php function redirect_to_acf_file_url() { $file_url = get_field('...
a_y's user avatar
  • 1
0 votes
0 answers
11 views

How to prevent random 302 canonical-ish redirect on custom template

I'm trying to create a subpost location - like /embed or /feed - for photo galleries. // this defines the location logic if (!function_exists('is_gallery')) { function is_gallery() { $uri = $...
lucian's user avatar
  • 322
0 votes
0 answers
24 views

How to beautify filter path url?

currently using a filter to create seo friendly pages. URL looks like this: website.com/shop/filter/product_cat-xxxx-and-xxx-and-xxx I wish to show it to customer as website.com/shop/puzzles/adventure ...
Spy's user avatar
  • 1
1 vote
1 answer
67 views

How can I do automatic redirects to canonical URLs as defined by Yoast SEO?

This client is using Yoast SEO (the free version) to specify primary categories for posts, a feature not available in the WordPress core. They discovered recently, via an SEO report, that the same ...
William Beaumont's user avatar
0 votes
1 answer
19 views

Changing permalink won't redirect to new version of page

I created a new version of a Page. I changed the permalink of the previous (deprecated) version. I then changed the permalink of the new version to the original permalink. Unfortunately, Wordpress ...
jchwebdev's user avatar
  • 775
0 votes
0 answers
18 views

Wordpress keeps redirecting to root site after saving any setting

we have the next issue: We are working in our DEV environment: www.oursite.com/blog But everytime we press the "save settings" button, for example, saving changes inside settings/general it ...
JPD's user avatar
  • 13
0 votes
0 answers
73 views

Fatal Error in my WP "Call to undefined function get_option()"

It all started when I installed the Really Simple plugin on my WordPress website and requested the SSL certificate even though I don't have HTTPS. When I realized this error, it was already too late, ...
ben's user avatar
  • 1
0 votes
1 answer
31 views

Where to add wp_redirect on frontend pages?

My main problem, that I generate forms based on data coming from the init hook. I cannot do it earlier because I use get_current_user_id to check which posts belong to the current user and the form ...
inf3rno's user avatar
  • 135
0 votes
1 answer
25 views

Redirecting after login except for a specific page

I needed to redirect users after login and this was not a problem using an add_filter on functions.php, done, it works as expected. But now I need to avoid this redirect when the user login from a ...
zatarra's user avatar
0 votes
0 answers
12 views

Link Wordpress Comment Admin Author name with About page

I am looking for a functions.php code which will link my admin author name in WordPress Comments to the About page of the admin. Currently the code I am using links my post admin author name with the ...
Swagatam Majumdar's user avatar
0 votes
1 answer
35 views

Show 404 when someone visits a non-existant Multisite site

If we try to access a non-existant Multisite site, e.g., http://site1.example.com or http://example.com/site1/, we are redirected to http://example.com/wp-signup.php?new=site1. How to block this and ...
Sevi's user avatar
  • 315
0 votes
0 answers
26 views

Setting up a redirection

I am trying to use WordPress's redirect feature to setup a redirect for the following. I can successfully get redirects to work from a page to another page or a page to a PDF in the media. I can't ...
Michele Kleinhomer's user avatar
0 votes
1 answer
9 views

Permalink issue with new blog posts > getting 301 redirect

My permalink structure is: https://website.com/sample-post/ However, each new blog post is getting a 301 redirect from a link like this: https://website.com/2024/01/30/ I see that each new blog post ...
Meek Mill's user avatar
0 votes
1 answer
38 views

Top-level staging-site URL redirects to a different site

I have a site, let's call it resources.mycompany.ca - and I just set up staging for it at resources-staging.mycompany.ca . The staging site works fine if I try to visit any specific URL (i.e. ...
Adam Abrams's user avatar
0 votes
0 answers
41 views

Show different page depending on user role

I am quite new at WordPress and sitebuilding in general but I have built a site that I am pleased with. We are working with companies in four different countries and I want my customers to be able to ...
Knugen's user avatar
  • 1
0 votes
1 answer
96 views

Redirect WordPress multilingual website to the domain

I used Polylang plugin to add multilingual system to my website. But I have removed the Polylang and the multilingual system. I want to redirect these multilingual website to my domain. Instead of ...
user239456's user avatar
0 votes
1 answer
33 views

login link with auto_redirect

I have a site and there is a login button on the site which points to mydomain.com/wp-login.php However, I would like to create a button to login to the site but I wish to make it like how it works in ...
futureyoon's user avatar
0 votes
1 answer
41 views

How to create alias / synonym links to existing posts

I have a directory type website, where each post is a word definition. I want to set up synonyms of these words for audiences from different geographies. For example, let’s say I have a post for “...
Rhecil Codes's user avatar
0 votes
1 answer
21 views

How to prevent wordpress from redirecting media attachment page to media page?

For some reason googlebot tried to index my media attachment pages and got redirected to media pages. This seems to be a default wordpress behavior. To recreate it, upload an image called test.jpg to ...
Nicolas Guérinet's user avatar
0 votes
0 answers
32 views

Logout and redirect WordPress user id without he refresh the page

I m developing a functionality triggered on a button $('.disconnect-classroom-button') when clicked, I logout all members inside that group, and the logout is done successfully ( but the user has to ...
Ilyasine's user avatar
0 votes
0 answers
28 views

add to cart linking to add to cart page

I am making a website in Wordpress and created a custom shortcode for loading the products. That is working fine, however when clicking the add the cart button, if redirects me to the cart page, where ...
Brango's user avatar
  • 1
0 votes
2 answers
73 views

Right Permalink for Custom Post Type with number slug

I am working on a little Plugin (based on a Custom Post Type called gallery) for a gallery (that reads out a large number of ftp folders). The post type does not have taxonomies but like pages just ...
inspirationally's user avatar
0 votes
0 answers
24 views

Problem after redirect homepage to /en/

My homepage site URL was like this: example.com and example.com/en/ then i want my homepage always have /en/ so i add this code to my function.php but after 1 month my website lost icon when i search ...
Dat Hoang Tien's user avatar
0 votes
0 answers
48 views

Permalinks and redirects

I would like to change the permalink from /%category%/%postname%/ to /%category%/%postname%-%post_id%/ How to set up a redirect correctly?
W1ns's user avatar
  • 1
0 votes
2 answers
71 views

Wordpress post slug redirection

I am maintaining a website and noticed an odd behavior on page redirection, the website is indexed in Google, and posts are listed on Google Search Results, but it looks like the post slugs could be ...
AugustoM's user avatar
  • 101
0 votes
0 answers
22 views

Site1 wordpress website redirect to other site2 in my same server

I am using Alibaba Cloud Server Ubuntu 18.04 and control panel is VestaCP. I have got a WordPress website www.site1.com . However, after I install SSL via really simple ssl plugin. Now, I cannot ...
John Lee's user avatar
0 votes
0 answers
52 views

Redirecting to Specific Page after Language Selection with GTranslate Plugin

Dear WordPress StackExchange Community, I have been using the GTranslate plugin, and I'm thrilled with its functionality. However, I am facing a challenge and would appreciate your insights. Here's ...
Mahmudur Rahman's user avatar
0 votes
0 answers
11 views

Unwanted redirection to homepage after turning taxonomy to 'public'=>false

I have in my site (a site with Elementor, if it's matters) taxonomy 'aaa' with taxonomy term 'bbb'. When I registered this taxonomy, it was set to 'public' => true. Now I changed this setting, so ...
Avi Rec's user avatar
1 vote
1 answer
36 views

Wildcard multisite wp-admin url wrongfully redirected

So, this is the situation. I have a working top level domain site (https://example.com) and I set up a wild card subdomain (*.example.com) and multisite settings in WordPress. It works as expected, as ...
Sven V's user avatar
  • 11
0 votes
1 answer
210 views

redirect wp-admin/profile.php to members/your-profile

Is there any way to redirect /wp-admin/profile.php to /members/your-profile I do not want members to go to the default wp-admin page but instead go to the custom members page. I tried a redirect via a ...
Ian's user avatar
  • 1
0 votes
0 answers
43 views

Change WordPress Multisite Domain to subfolder

I want to change my existing WordPress Multisite main site to be in a folder. For example, this is my current main site of the network: example.com. Other domains in the network have folders like ...
Cray's user avatar
  • 145
0 votes
1 answer
54 views

Redirect WordPress page to the latest created post by the logged in author/user

I have a basic WordPress code that redirects someone to the last post type created on the site, in this case is the "case" post type: <?php /* Template Name: Redirect */ $args = ...
Sean Bagheri's user avatar
0 votes
0 answers
18 views

Cloned site in subdirectory keeps redirecting to root

I used the Duplicator plugin to make a copy of my main https://l4jp.com site in a subdirectory "old" so I could do comparisons between versions of a theme and fix CSS problems. I can access ...
OsakaWebbie's user avatar
1 vote
0 answers
21 views

Wordpress Redirects Old Post Url to New Related Post

I have a post with a URL of example.com/x-y-z/ and when I added a completely new post with a new URL of example.com/x-y-a/, WordPress redirects the old URL to the new post's URL. (I don't want any ...
doraemon's user avatar
  • 223
0 votes
0 answers
34 views

Change Website Homepage from WordPress to Xenforo

I have a website which has both WordPress and Xenforo forum and both has individual home pages. The Xenforo is installed inside /community directory and WordPress in default directory. Now the website'...
Karthick Sriram's user avatar
0 votes
1 answer
101 views

Redirect all pages to a specific page of a new domain but exclude specific pages

I'm trying to redirect all pages of example.com to a specific page domain.com/rebrand-explained except for the following pages, they need to be going to the same slug on the new domain for example: ...
Johan Barnard's user avatar
0 votes
0 answers
46 views

How to create Wordpress login for different users, with different roles?

I need to create a web page. where the user / group of users, after logging in through the portal (using the provided login credentials), will be redirected to the relevant page with their own ...
Irina Niko's user avatar

1
2 3 4 5
39