Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

"HTTP Redirection" – the process by which a request for one URL is automatically replaced by a request for a different, usually related, URL.

0
votes
0answers
13 views

passing registered query string param to home page results in unwanted redirect to page listing all Posts

In certain instances, I need to pass a query string parameter to my home page. Ex: http://uat1.one-pager.sugarloafculinary.com/?lbcid=SOME_VALUE. I use the value of this param in my child theme's ...
0
votes
1answer
19 views

How to make a redirect link in wordpress?

How to make a redirect link in wordpress. My site has two domain. I just wanted to set 1 link only and the redirect link is from domain A to domain B. I want to make a redirect link from
0
votes
0answers
19 views

How can i redirect user to specific page

I have a WordPress site for the property management, I have 6 properties in the different city managed by the different property manager, I would like when tenants are login redirect them to the ...
0
votes
1answer
15 views

Redirect /member/ to /member/user

Is it possible if an user is loggued to redirect /member/ to /member/user ? (User is the display_name) If yes, how can I do this ? Thank you ! :) thanks to Jack, I tried to search on google "Wp-...
0
votes
0answers
12 views

Redirect sub pages but load them with ajax

I redirect subpages. (site.com/page/2 to site.com) But then when loading these subpages with ajax (load more), they do not load. How to both redirect the subpages but also load them with ajax?
-1
votes
1answer
27 views

How to handle expired assets/content when user has direct URL

An E-Commerce site has PDF coupons that expire after a certain date. What is the best way to handle them? I've heard allowing 404's aren't great for SEO and 301 redirects can clog up the .htaccess. ...
1
vote
2answers
43 views

Redirect users based on custom field

I'm a novice at Wordpress and i'm pretty sure what i'm looking for is really easy. I have an issue with a function that doesn't work : function user_homepage() { if ( is_user_logged_in() ) { ...
0
votes
1answer
20 views

User is logged in after Stripe payment, then redirected, but is then logged out again

In a plugin, after a Stripe Checkout payment is processed, an account is created, the user is logged in, and then redirected to a "thank you page". On this page, only about 1/3 to 1/2 of the users is ...
0
votes
1answer
31 views

I've removed my /author/ slug but it clashes with new and existing pages. Any fixes?

I've successfully removed my author slug using this tutorial: https://wp-snippet.com/snippets/remove-author-prefix-from-slug/ so it's like website.com/author/cixxy to website.com/cixxy My question ...
0
votes
0answers
18 views

Login redirects to home page and doesn't log in

When logging into the backend it redirects to the home page. If I try going to /wp-admin after it gives me the login again. I've tried deleting the htaccess, renaming the plugin and theme folders, ...
0
votes
1answer
21 views

Redirecting “wrong” but working links to their canonical URL in order to prevent search engine penalties (e.g. /123/ at the end of URLs)

The WordPress permalink system is really nice as it even detects minor problems with URLs and is loading the correct page. For example we have a page with an URL like this: http://www.example.com/...
0
votes
1answer
21 views

wp-login.php?redirect_to=https problem

wp-login.php?redirect_to=https problem Please forgive me if I am posting in the wrong place but I am here to see if you can help me with some minutes of your time. The problem is a website showing ...
0
votes
1answer
30 views

Custom URL redirect in WP

I am trying to make my own redirect page for external link. My target My target is that, when a user open the link www.mysite.com/wp/GoTo/?URL=www.google.com, the browser open the page www.google....
0
votes
0answers
51 views

How to redirect https://www. to https: avoiding SSL error? [closed]

I've installed SSL on my domain https://example.com. However, if I go to my website with the www subdomain like https://www.example.com I get an SSL error in Chrome, Firefox and every browser. So ...
0
votes
0answers
15 views

Wordpress redirect to permalink

I have a wordpress where I tried to recreate something from another site I created a while ago. The old site is (after all the updates) still working absolutely fine. One part is a selfcoded ...
-2
votes
0answers
14 views

How to redirect non www to ww withoud site crashing?

yes there are thread already but when i use codes found there, site gets crash always. this is my htaccess and how can i do this without site crashing? # BEGIN LiteSpeed <IfModule Litespeed> ...
1
vote
2answers
35 views

Plain permalinks not working!

For my wordpress website plain permalinks are not working. The post url is changing but when we click on the post its not redirecting to the post page. It will be in the home page itself. For example:...
0
votes
1answer
24 views

Disable WordPress Redirect From terminal

I am in the process of transferring a WordPress server from the IP address "12.34.45.67" to a new server "11.11.11.11". Unfortunately, I set the WordPress address and the site address as seen here in ...
1
vote
1answer
14 views

Redirect undesirable domain

I have a wordpress site that i want to run 2 hosts with 2 different domains. Site in the first host with the domain example1.com works correctly but in the second host domain example2.com redirect to ...
0
votes
0answers
22 views

Deleting the Default Canonical Tag and Inserting a Custom Tag for a Single Category

I need to be able to delete the default canonical tag for all posts in the category 'rezept' and then create a new custom canonical tag because I have modified the URL string for this category to ...
2
votes
1answer
38 views

How to remove “YEAR/MONTH/” from uploads URL & redirect old URL to the new form?

I have disabled "Organize my uploads into month and year-based folders". The links to my PDF files were of the form: https://www.example.com/wp-content/uploads/2018/03/document.pdf And now they are:...
0
votes
1answer
28 views

Custom Function to redirect singular post if specific meta field is empty

I have a custom post type People that has several metafields. When the ecpt_bio meta field is empty, the post will link to whatever URL is entered in the ecpt_website meta field on the post archive ...
1
vote
1answer
42 views

Redirect htaccess does not work correctly with my new wordpress site

I have an old website that works fine (www.example.com). I have created a new website (www.example.com/wordpress) and I thought I could use .htaccess to redirect as I've done it for other html ...
0
votes
1answer
16 views

Wordpress not loggin user and redirecting after custom registration

I am trying to make custom registration form in my wordpress site , the form is registered successfully but i couldn't login the user after registration and redirect to a custom url. this is the code ...
0
votes
0answers
10 views

Hosting wordpress on non 80 port always requires port in URL or I get too many redirects error

I have a wordpress docker container running on host: 192.168.1.1:32811 I set the siteurl and home to 192.168.1.1:32811 and everything works OK. I then setup an nginx reverse proxy on another ...
0
votes
1answer
29 views

wp_redirect leading to an infinite loop

Goal: I have modified the permalink to show the category name for a specific category: grill-rezepte. By default the permalink is: https://website.com/post-title just the grill-rezepte is now: https:/...
0
votes
2answers
38 views

Redirecting connection from IP to localhost

I'm running localhost server on xampp. I 'm connecting properly with my host computer from other devices with IP address but once i go into wordpress directory i got redirected. Every device i was ...
0
votes
1answer
47 views

WooCommerce lost password reset flow not working with SendGrid (redirect loop)

Leaving this here for anyone who runs into the same issue because I just spent a few hours to track this down and couldn't Google my way there: The WooCommerce reset password flow is broken. The ...
0
votes
1answer
26 views

redirect to another page if user has registered successfully

I am very new to wordpress and I don't know anything yet. I have a custom registration page which works well, but after registration doesn't do any thing and user has to manually go to his profile via ...
0
votes
0answers
8 views

Redirect page only if it's not loaded in an inframe

I have pages in my site that open in a lightbox popup from the home page. If a user browses directly to those pages, I'd like to redirect them to the home page instead, but that will surely stop ...
2
votes
1answer
59 views

Rewrite WordPress Custom URL

I have a custom WordPress url which is generated by ID. I have to rewrite this url https://example.com/account/customer-bookings/?view-booking=4 to https://example.com/account/customer-bookings/view-...
1
vote
2answers
42 views

WordPress Global Redirect

I need to expand on this discussion Redirect entire website to a single page to include two pages rather than one. On this site, I need two pages to be live and all others to redirect to the home ...
0
votes
2answers
62 views

Custom Post Type canonical link / pagination redirecting to root

I have inherited an existing site and have recently been asked to make some changes. They have 'renamed' the default post as 'latest-news' using this 'my_new_default_post_type': <?php add_action(...
0
votes
0answers
12 views

WordPress taxonomy value not re-directing

Is it me or does, http://yoursite.com/?THE_TAX=THE_TERM_VALUE not work anymore? Getting a 404? However, http://yoursite.com/?THE_TAX=THE_TERM_SLUG works as expected. Not sure if it's a WordPress ...
0
votes
1answer
16 views

Fresh install redirects to www, breaking page loads

I set up a new Wordpress site, wanderandponder.com, on DigitalOcean yesterday. It was on a droplet that also ran several other Wordpress sites, without conflict. However, when accessing the domain, it ...
0
votes
1answer
39 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 ...
1
vote
2answers
45 views

Redirect to https not working with .htaccess [closed]

I have the following setup in my .htaccess file, but I am still able to go to my site via http: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$...
1
vote
0answers
30 views

Redirect non-existent subpages to second part of url

We have many different departments, who have their own custom abbreviation. For example: ga, de, ka-da. Every department has its own custom logo and intro text. I would like to achieve, that there is ...
1
vote
1answer
28 views

How to use Regex to add to a url?

Right now I have a bunch of old blog posts that I need to update to the new url structure. I added /blog/ to all of the new url, and old existing links just have the old format without the /blog/ ...
2
votes
5answers
46 views

Redirect after users complete profile form

I have a user registration form implemented and working correctly on the front end of a website. My main issue is that I would like to redirect a user after completing the profile form. My idea ...
0
votes
1answer
49 views

User redirect to specific URL after logging in

I'm trying to redirect a user to a specific post after logging in. This post is the latest post of a custom post type where the author is the current logged in user. I currently have to following ...
1
vote
0answers
29 views

WP_User_List -> How to open a new edit-page in WordPress admin backend!

i'm doing my first plugin and got stuck with linking a row-action to a new editing-site! What i'm trying to do: -> Manage User Meta on a special settings site. Add some fields for documents and ...
0
votes
1answer
32 views

Redirect HTTP request to HTTPS request

I am running a website that's not on Wordpress, it is built by another developer using custom framework and it is too terrible. That's what make me crazy now. Currently, I need to rewrite the request ...
2
votes
1answer
35 views

Wordpress multisite htaccess redirection to new domain

RewriteCond %{HTTP_HOST} ^site.olddomain.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.site.olddomain\.com$ RewriteRule ^(.*)$ https://site.newdomain.com/$1 [R=301,L] All posts URLs are redirecting ...
0
votes
0answers
34 views

WordPress Multisite remove www to non-www redirect

today I checked my domain Divi Sensei in Google PageSpeed Insights and I get a listed a problem "Avoid landing page redirects": On my site, I run a WordPress multisite, which uses subdomains for the ...
2
votes
2answers
97 views

Remember page before login page, redirect to that page after login

I have a woocommerce shop that only allows logged in users to make purchases. I have replaced my add to cart button with a "login" button if the user is not already logged in. This than brings them to ...
0
votes
0answers
23 views

is_page() and get_post() for URL redirect

I have created a function as follows in the functions.php page (from questions asked here): add_filter('rewrite_rules_array','job_rewrite_rules_array'); function job_rewrite_rules_array($rules) { ...
2
votes
1answer
25 views

RedirectMatch and Redirect interfering with each other

I have the following lines in my .htaccess (there are other lines but these two are next to each other) RedirectMatch 301 ^/datingstories https://example.com/blog/category/relationships/...
1
vote
2answers
101 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 ...
0
votes
0answers
8 views

Redirect wordpress links after permalink changes

i have changed my permalinke structure from /recipe/%post_id%/ To /%postname%/ and now all the urls gives 404 error , i tried almost all redirect plugins with wildcard option but no success , i hope ...