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

Regex for permalink redirect

I'm trying to change permalink structure but need to keep the links on google reach safely. This is not exact wordpress question. The current structure is: /taxonomy/slug/id (and some url params ...
0
votes
0answers
19 views

Wordpress Pagination for Custom Post Type returns Same Post on every Page

The Pagination for my custom post type returns the same posts on every page. Like when hovered over the pagination like the link shows domain.com/android/page/2 but when clicked it returns to domain....
1
vote
1answer
43 views

All pages have 302 redirect, which I can't remove

I’ve got this site setup as a multisite with the main domain being http://www.scottish-orienteering.org. If I enter a page without the www at the start it always 302 redirects to the homepage with a ...
0
votes
1answer
27 views

Make custom post type archive for administrator only

Simply I have made a custom post type named ticket and have created an archive-ticket.php file I want to make if the user that tries to visit the tickets archive page is not administrator redirect him/...
0
votes
0answers
15 views

Automatically switch language based on visitor's country

I want to switch domains based on the visitor's country since I have one for US/CAN/International in English and Chinese for China. I want to know if it's possible to redirect my English site to my ...
0
votes
1answer
61 views

Is it ok to 301 redirect product-category pages to custom pages?

I would like to create a custom page in my wordpress, with a custom design and export all the products from a certain category there. However, breadcrumbs from woocommerce will point to the old/normal ...
0
votes
1answer
11 views

Do redirect 301 for wordpress page

I have two domains, one server, the same files here and there. I want to redirect from one domain to another, but something does not work. What I write in .htaccess appears on both, as one server, the ...
0
votes
0answers
12 views

WordPress not linking correctly with .htaccess redirect to subdirectory

I have read other posts about redirect to subdirectory issues, but they don't answer this precise question. I would like to redirect the main domain name in a hosting account into a subdirectory. The ...
0
votes
0answers
18 views

Redirection in a multisite network

Before I had a single wordpress on a .com domain. But I switched to multiliste for having regional websites. I now still have this .com website working and I created a copy of it in the subdirectory ....
-1
votes
1answer
29 views

Redirect to a subdirectory frontpage using without using a WP plugin- what files to edit, and how?

My situation I have a multisite setup, where I use subdirectories for different languages. I use the main homepage for English and subdirectories for other languages, as follows: mywesbite.com : ...
0
votes
1answer
24 views

Can't access WP-Admin via HTTPS

I facing an issue. I installed WordPress on a Ubuntu server. Though both site_url and home_url are with https, WordPress keeps loading files via http. This blocks me when trying to login (login form ...
0
votes
2answers
35 views

How to redirect an old page url to the homepage

I deleted a post from a site and I used yoast to move the URL (error 301) to another post, now I am struggling because I want to move the deleted content to the site homepage instead of blog post. ...
0
votes
0answers
61 views

Is my site under attack? Constantly *wp-update.php is called by different ip addresses which triggering a “Request exceeded redirects” PHP Error

Today i checked my php error files / server logfiles and discovered the following error: [Fri Feb 07 18:59:59 2020] [core:error] [pid 13416] [client 213.90.54.131] [host my-site-domain.com] ...
0
votes
0answers
10 views

Redirect from /sub-directory/old-page to /new-page Wordpress [duplicate]

I have a new website set up (same domain, new server, new Wordpress set up) and one of the old pages has a different url to the new page. The previous set up was: mywebsite.com/sub-directory/old-page ...
1
vote
1answer
32 views

Redirect from sub-directory to root - New Wordpress 5.2.3 Set up

I am using Wordpress 5.2.3 for a new website on a new server set up. I have pointed the existing domain at the new server. The old website was installed on a sub-directory. So Google etc. has ...
0
votes
0answers
75 views

301 Redirect Loop www to non-www - Nginx + Apache2

thanks for any help. I am not a server guy but I am dealing with a server at the moment. I have a site that is in a redirect loop from www to non-www. I am using a DigitalOcean Droplet with Ubuntu and ...
1
vote
2answers
53 views

Change links automatically to affiliate links

My goal: I want external links to shops I'm affiliated with (for example amazon) to automatically get the affiliate ID attached to it. Example: link I put in my blog post editor https://www.amazon....
1
vote
1answer
48 views

Redirect custom post type from one domain to another domain

There is a custom post type by the name of code parked on a domain: sample.com. The redirect of the whole custom posts of code CPT to the custom posts of code CPT of www.someanotherdomain.com ....
2
votes
1answer
31 views

How does WordPress redirect without using .htaccess?

As explained here, WordPress has Automatic URL Redirects. However, it's not based on .htaccess which WordPress keeps to a minimum. Let's say your "siteurl" setting (in the GUI) contains "www.". If a ...
0
votes
1answer
34 views

Redirect based on parameter in url

I want to redirect my site to the correct url based on parameter. The url is passed when changing the language of the site using the language switcher. If url contains lang=de, then redirect to ...
0
votes
1answer
29 views

301 Redirection After Comment

The below code redirects visitors to any page that you want. // Redirect to thank you post after comment add_action('comment_post_redirect', 'redirect_to_thank_page'); function redirect_to_thank_page(...
0
votes
1answer
17 views

how to redirect 404 to attachment.php?

I have a problem, I have many url attachments with / amp, example: siteweb.com/article-2019/image2/amp siteweb.com/article-2019/image3/amp siteweb.com/article-2019/image4/amp all these give me 404 ...
0
votes
1answer
100 views

WooCommerce Registration redirect based on page ID

I am trying to change the WooCommerce Registration button redirect link. This is the code I use for the redirect (which works just fine): function custom_registration_redirect() { if(...
0
votes
1answer
19 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
vote
2answers
229 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
31 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
55 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
98 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
16 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
19 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...
1
vote
1answer
15 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 ...
0
votes
0answers
11 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
13 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
29 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
26 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
28 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
52 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
25 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
26 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
34 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
12 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
96 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
65 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
11 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
30 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
31 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
60 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
82 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 ...
0
votes
0answers
14 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 ...

1 2
3
4 5
34