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
1answer
18 views

Changing post depending upon where you're redirected from?

I want to create a post on my site in such a way that when a given user enters the first page (say, front), then some aspect of the "front" page changes (like picture shown, the name used to address ...
-1
votes
1answer
23 views

My wordpress site is redirecting to old url,

I moved my url from staging.site.com to site.com but when I type site.com in the browser, it automatically redirects to staging.site.com which doesn't really exists. I have tried changing the wp-...
1
vote
2answers
22 views

A post has a js redirection script. How to not redirect its category?

I have a post in category A that contain this redirection script: <script>window.location.replace("http://www.w3schools.com");</script> However, when I click on A, it also redirects. How ...
0
votes
0answers
27 views

How to trigger different behavior in iFrame

I have a website in our company network from which I integrate content to other sites in our network via iframe. The source page can only be accessed with Login via SSO. However, I want to see that on ...
0
votes
1answer
28 views

Infinite loop when logging out using custom login form

I have a child theme that I'm using based on a parent theme I created. The parent theme uses the standard wp_login_form while this child theme uses a username only option (the site itself is local - ...
0
votes
3answers
44 views

WordPress localhost site always redirect to live site [closed]

I know that there is already a similar question like this. But I have already done all these suggested solution and nothing works for me. If there are caching plugins installed like W3 total cache. ...
0
votes
1answer
9 views

Remove part from dynamic url and redirect

How do can I redirect the following URL to the next URL? It essentially should remove the ID part (this is a post tag URL). http://wpsoup.test/tag/88/koffie/ -> http://wpsoup.test/tag/koffie/. I've ...
0
votes
0answers
18 views

Redirect WooCommerce checkout to cart

how can I redirect customers to cart page when they click on checkout link? I found many tutorials to redirect in the opposite sense (cart to checkout) but nothing for my purposes...
0
votes
1answer
10 views

How To Redirect /url.html to /url?

I want to rediret mysite.com/page-url.html/ to mysite.com/page-url/ how can i do that ? I tried to create page rule in cloudflare like this - mysite.com/.html to mysite.com/ but it's not working.
0
votes
0answers
10 views

domain redirects to subdomain

I am facing an issue I created a subdomain , I am using hosting so I choose an auto-installer option and choose subdomain but after some time when I click on my main domain it redirects to the ...
0
votes
0answers
9 views

Redirect to custom post if custom archive page has just one result?

So i have made a Custom Post Type called cars and 4 taxonomies that i use to make/edit the cars pages. I have a search&filter pro plug-in to help me sort my pages by the 4 taxonomies assigned. It ...
0
votes
0answers
13 views

Issues redirecting /%postname%/%post_id%/ to /%postname%/

Having permalink redirection issues. I'm trying to redirect /%postname%/%post_id%/ to /%postname%/. I've changed the setting from Setting=Permalink, and it seems to be working well. But example.com/...
0
votes
0answers
21 views

How to make the redirects right? IP to domain name folders

Recently added a domain name and there are pages/links that still include the IP address and when pressed redirects from http://ipaddress/subfoldersite/folder to mydomain.com. I have multisite network ...
0
votes
0answers
27 views

302 redirect *.at/site redirecting to .comsite

My WordPress site xy.at/site is redirecting to xy.comsite instead of xy.com/site. Is it possible to fix this in the .htaccess file? The .htaccess file currently looks like this: <IfModule ...
1
vote
1answer
27 views

Redirect user after successful email change

I set up a front end form for logged in users to update their email address. So far it is working however I want the user, after confirming the email change via link sent to the new address, to be ...
-1
votes
1answer
20 views

WooCommerce shop, my account, cart every page redirect to home page [closed]

Here is my website: smitafashions.com Whenever I click on any page from the menu or the products in the home page, every link redirects me back to the home page I tried clearing cache Save ...
1
vote
1answer
23 views

Redirects after permalink change

I am using the permalink settings /%category%/%post_id%/. And all URLs are indexed by Google using the above. Now I want to change the permalink to /%postname%/. But this will make all Google ...
1
vote
1answer
23 views

How to migrate production Wordpress to Localhost

I am trying to migrate a production Wordpress site to a localhost install on MacOS using MAMP pro. What steps do I need to preform to enable this. I have the data base configured and connecting. I ...
1
vote
0answers
11 views

How to redirect to clean links with this code

I have a website uses wildcard* i made a custom page called custom-page.php i used this code to access to this custom page RewriteCond %{THE_REQUEST} \h/custom-page\h RewriteCond %{REQUEST_URI} !^/...
1
vote
1answer
33 views

Redirect customer to login page (with other signup plugin) if user not logged in when proceeding to checkout

I use "Digits (WordPress Mobile Number Signup and Login)" for signup by email & SMS ; when non logged in user proceed to checkout , want to redirect to signup form of Digits (not usual woocommerce ...
3
votes
2answers
55 views

Redirect www to non-www htaccess

It's been asked a gazillion times but it's still not working in my Wordpress. I want to redirect everything to https://website.com. Current code been used: <IfModule mod_rewrite.c> ...
1
vote
0answers
9 views

Regex with HttAccess

I am trying to use a regex redirect for media, we had them on a cdn but we are moving them back to wordpress. https://res.cloudinary.com/website/image/upload/v........../website/images/ https://www....
1
vote
0answers
24 views

How can I make my WordPress site redirect to subdomain once successfully login they will redirect back to root domain

When users visit my site they should login first through login form which i created in subdomain, once successfully login they will be redirected back to my root domain. This is my subdomain -> http:/...
2
votes
0answers
18 views

My website on checking showing 403 error on HTTP Status [closed]

My website is running fine but when I check on the https://httpstatus.io/, it is showing the 403 error and also on the Google page insights, it is not showing the report. My website DNS is currently ...
2
votes
1answer
31 views

url keeps redirecting to a page

I have theme options pages www.website.com/wp-admin/themes.php?page=avada_options but problem is when ever i go that page it redirect to www.website.com/store-manager/ I checked the rewrite, even ...
0
votes
1answer
23 views

Post Click Redirect to Custom URL instead of Single Post Page

I have a custom post type called "articles". When an article link is clicked, I want to redirect them to custom URL(this URL is saved in the database as custom field) instead of the single page. How ...
1
vote
0answers
8 views

Regex redirect rule for missing part of the path

i want to have a redirect rule for: before: /ratgeber/one/two/three/, after: /one/two/three/ or before: /ratgeber/one/two/three/four, after: /one/two/three/four/ So i just only want to redirect to ...
1
vote
0answers
18 views

Redirect based on a query string

I am working on project where the previous web developer has left the company. There is redirect happening based on the query string and I can't figure out where. The example URL is https://www....
0
votes
0answers
9 views

Redirection after migrating from Multisite to single site

I am rebuilding a wp site. There is an issue that I am not sure about. Client's old site is a multisite with two subdomains. So there are three parts - site.com, sd1.site.com & sd2.site.com. In ...
3
votes
2answers
419 views

Why does WordPress automatically redirect URLs with the parameter “name=” to a different page?

How do I disable this automatic redirect of the name variable so that I can use it on my call booking landing page? I'm setting up a call booking page here: https://www.themcmethod.com/talk/ I want ...
0
votes
0answers
29 views

Inapproriate redirection

Below is a part of the code of a plugin. I modified to add the else part. However, I'm noticing some weird behaviour. Before adding the else part, the first part of the code was properly executing ...
0
votes
0answers
14 views

Using cache brokes redirecting

In my .htaccess I have a rewrite rule to redirect from /index.php to /, and it works perfectly immediately after I clear cache, but doesn't work after some time (maybe page /index.php got cached). I'm ...
0
votes
0answers
36 views

WordPress Stopped Redirecting Shortened Child URLs

I'm currently on WordPress 5.3 and just noticed that at some point, shortened URLs stopped working. And what I mean by "shortened" is that you used to be able to just type in the final part of the URL,...
0
votes
0answers
40 views

How to create a WordPress PAGE in another folder?

I have a URL Shortening script running on the homepage while there is a WordPress installation on another folder named blog. So that would look like this https://homepage.com/blog The problem is that ...
0
votes
1answer
37 views

How to make a redirection that fired a script before redirecting?

The objection is simple: I want to redirect a post in my site to an external website, but before redirecting the Google Analytics script should be fired, so that I get the report. The Redirection ...
1
vote
0answers
65 views

Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?

When you set up WordPress to use multisite, you're directed to modify your .htaccess file to use one of the following, which are outlined in the admin and the WordPress documentation: Subfolder ... ...
0
votes
0answers
24 views

Redirect plugin showing '/false' in urls that reurn as a 404

I'm seeing lots of 404s registered by the WordPress plugin Redirection such as contact-us/false. The user agent that's finding the 404s is Googlebot-Image/1.0 I have Search Console connected to the ...
0
votes
1answer
28 views

Create short URL with auto 301 redirect

I found this post (Create additional short URL with custom field and 301 redirect) and tried to do this with a custom post type I created but it aint working and I dont know what I am doing wrong in ...
0
votes
0answers
19 views

Using shortcode to implement Javascript in Elementor

Objective: To redirect users to different pages after they submit a form in Elementor. The redirection will be based on a javascript variable that is stored. I have given the submit button an ID ...
0
votes
0answers
15 views

How to send new visitor to a splash page for only one time in wordpress?

I have a PHP script that will be the main web platform and would like our NEW visitors that visit our domain to be sent to an (introduction type) Wordpress splash page, and we want this to happen only ...
1
vote
1answer
162 views

Contact Form 7 Data to Whatsapp Link

Is it possible to get the data from the user input in Contact Form 7 to a WhatsApp prefilled text link? I'm trying to get the people who submitted the form to redirect to Whatsapp with the prefilled ...
1
vote
0answers
13 views

Redirect 404 page with ID in slug to associated page with same ID in slug

I got URL's like this: test.com/redirect/p563328-18/ This are pages / urls that doesnt exist (404) but we have custom post types (vacatures) with posts that have the same "id" in the slug: test.com/...
0
votes
0answers
8 views

How can I create automatically changing urls?

I have following issue: I need to add CTA Buttons to my site, that generate, whenever someone clicks on them, a new url. The URL Structure has to be like this: example.com/ref/1001/test The part ...
0
votes
0answers
25 views

Prevent canonical redirect for staging (pre-production) domain only

We have a single wordpress instance that is accessible in two different domains: https://example.com/wp/ and https://staging.example.com/wp/. The first is the canonical site, but the second should be ...
0
votes
0answers
32 views

Multisite network admin login redirect

I have a multisite with two different domain names. I had an issue where I could log in to www.domain1.com/wp-admin and the Network Admin just fine, but if I try to log in to www.domain2.com/wp-admin,...
1
vote
1answer
22 views

Infinite redirects after changing the permalink of a page

I changed the permalink of a page in the WordPress site. It caused to infinitely redirect between the new and old permalink. To test the scenario I changed the permalink several times and now it has ...
0
votes
0answers
10 views

Url for random post (in specific category)

I know that a URL formed: samplewebsite.com/?random will redirect to a random post. Is it possible to create a URL that will redirect to a random post within a particular category? samplewebsite....
0
votes
1answer
27 views

Adding query string parameters to URL with same name as custom post type gives 404 error

I have a Projects page where I use query strings to deep-link to different categories using JavaScript. For example if my URL is www.mysite.com/projects/?theme=blue then I read this query string in ...
0
votes
1answer
49 views

Keep subcategory grandson in slug

I have the categories and subcategories father, son, grandson: -father --son ---grandson When creating an post and mark it only in the grandson category, the correct slug is generated: www.example....
0
votes
2answers
16 views

How to redirect returning users who previously logged in?

There are many answers to how to redirect after login. But my situation is different. In my scenario, we have a landing page where people can login. Once logged in, the users are not logged out for a ...