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.
1,870
questions
1
vote
0
answers
10
views
Category Redirection Problem
I am trying to redirect all categories at once to a specific page but didn't find any solution.
I go through a solution by redirecting one by one category to a specific page.
So is there any solution ...
1
vote
1
answer
67
views
wp_redirect() doesn't work
I am inserting a piece of code to my website that includes a redirect statement. Everything works fine except the wp_redirect();. The following warning message appears.
Cannot modify header ...
0
votes
0
answers
7
views
Create a custom redirect link that tracks the first visited page and after submitting form goes to first page using formidable forms plugin? [closed]
I have this form that I created using formidable forms pro plugin but instead of using the normal redirect option after submitting it, I want the form to go to the first visited page.
Is there a way ...
0
votes
0
answers
8
views
Using .htaccess to redirect /da/ to / in URL
I have removed /da/ from all URLs on my website, as i have gone from a multisite to a single site.
And now i want to redirect all urls from mydomain.com/da/foobar to mydomain.com/foobar
So that ...
0
votes
1
answer
19
views
Template Redirect Function Only Working When Logged In
I added a template_redirect to my functions.php file, which redirects private staff members to a "Staff No Longer Available" page. However, my code only works when I am logged in. Am I ...
0
votes
0
answers
31
views
Wordpress not use site url when redirect 301
I have Wordpress installed in a laravel project.
My Wordpress has site url and home url is same: https://laravel-domain/column
I config permalink to https://laravel-domain/column/sample-post/
My ...
0
votes
1
answer
28
views
Make multisite non-existing subdomains go to homepage instead of Index of/ page
I have a multisite with subdomains working in cPanel but non existing subdomains send users to Index of/ page, even though I have an index.php page.
How do I make it so only non-existing subdomains ...
1
vote
0
answers
20
views
Is RewriteMod for WordPress site: site.ro -> site.com/?lang=ro possible?
I'm not much of a WordPress specialist - is it possible to redirect new domain to the same site, but with ?lang=ro query parameter so it shows the old site with selected language?
Result I want:
site....
0
votes
0
answers
21
views
Page with redirect
I have an issue with indexing my website, where I get "Page with redirect" error on GSC or " Redirect loop", also on Yandex ( Yandex says The rel="canonical" attribute in ...
0
votes
0
answers
8
views
Is there a way to redirect people from a page on my .com website to a corresponding page on my .co.uk website if they are in the UK
I'm hoping for a bit of help or to be pointed in the right direction!
I have three websites:
a .co.uk website for the UK
a .ie website for Ireland
a .com website
for everyone else
The .com was my ...
1
vote
1
answer
16
views
How to create a redirect to another domain like safe redirect manager from php
We're in the process of migrating all of our content from one site to another site and I'm trying to figure out how to programmatically create a bunch of redirects from the old URL to the new URL on a ...
0
votes
1
answer
32
views
redirect to 404 page
I am using kadence free theme, and I need to get rid of some of my pages.
However because they are already indexed I can't simply delete them. so, i was thinking of doing a 404 redirect.
so, the idea ...
2
votes
1
answer
36
views
Pages resolve at different URLs (different capitalizations)
I've always considered these to be two different URLs:
https://oursite.com/fun/
https://oursite.com/Fun/
On our site, the same page loads when entering each URL.
Did something change in WordPress to ...
0
votes
0
answers
20
views
301 Redirect posts to newly added categories
I've added categories to my WordPress posts and changed the permalink structure to /%category%/%postname%/.
now, it looked like this:
https://domain.com/category/post-slug/
but I want the old ...
0
votes
1
answer
15
views
How to Create Custom Route to a page in WordPress
I want to set a new Route in WordPress that will be redirected to the desired path by entering a specific pattern.
for example: When I enter any url like below:
http://mywebsite.com/audio/Everything
...
0
votes
1
answer
40
views
How to redirect to a page after submitting form data?
I have a custom form which posts data to wpdb.
Currently, after form submit, my form keeps the user on the same page, but I'd like to redirect them to a thank you page.
Here is how the form is set up ...
0
votes
1
answer
34
views
Post Migration Site Migration Redirects All Known Solutions Attempted
I am running wp 6.1.1 wp 2023 theme with php8.1-fpm & apache2.
I am migrating a site from webinar.example.test to staging.webinar.example.org
I use git to push files and rsync/wp-cli to upload db ...
0
votes
0
answers
24
views
Every newly created page links to the same deleted page
I came across a weird issue in WordPress that I have no idea how to solve. It actually happened when my wife was adding pages to the website, so I don’t know exactly what she clicked, but she’s ...
0
votes
1
answer
36
views
Add a simple php code snippet to redirect a single wordpress url to another
I've been searching for hours now and I can't figure out how to do a simple redirect from a specific url to another.
I usually use the RankMath plugin for redirects, but they have a bug that won't ...
0
votes
1
answer
28
views
Redirect all pages to the custom login page except for the registration page
I have redirected all non logged in users to my login page but on the page there is an option for them to register and that navigates back to my login page and I want to exclude that register page ...
0
votes
1
answer
22
views
How to disable login and registration pages?
I use a login/register plugin and display the forms on a custom page. So I try to find a solution to disable, or even better, redirect URL such as example.com/wp-login.php, example.com/register (which ...
0
votes
0
answers
13
views
301 redirect just for 404 to another domain
my first post here :)
hope you can help me
i had an old website with 1000+ post and it was a mess, slow, with tons of old plugins and coding work that i just now don't use.
So i made a new site and ...
0
votes
1
answer
25
views
Redirected You too Many Times and Homepage Not Loading
Thanks for the support.
The WordPress site apparently was hacked... I did find 2 FTP files that the kacker was trying to use to increase FTP quota in the root folder, which I deleted. I also replaced ...
0
votes
1
answer
26
views
Creating custom link that redirects to a another link
I'm very new to wordpress (but not on development) and I'm using the wordpress.org GUI. I would like to create a link like this one:
www.mywordpressSite.com/myCustomPdf
(see that this should be a link ...
0
votes
0
answers
8
views
Forcing header cache control in 404 pages
I'm trying to force the caching of 404, 410 and 301 pages.
I've found some solutions but they have some issues. The 404 is trying to undestand preemptively if the page will be a 404, and it take a ...
1
vote
0
answers
35
views
Create a 301 Redirect automatically when adding %category% in the permalink
I was wondering what would be the best approach to set 301 redirects. I have around a thousand blog posts and 19 categories so individually setting them up is a challenge. Though setting up 19 ...
0
votes
0
answers
15
views
Redirecting to page on form submit - Revue plugin
I'm using the Wordpress plugin of Revue, newsletter service, to insert a sign up form on my website. When people sign up, the following message is shown: "Thanks for subscribing to my email ...
2
votes
2
answers
117
views
How to use multiple 404 Error Pages in Wordpress
I have a question and couldn't find a solution for it.
We have a Wordpress page where the client wants multiple error pages.
1 error page is in the usual normal 404.php for the custom theme which we ...
0
votes
0
answers
31
views
Multisite Primary Domain Broken All Subsites Work
I am all out of tricks.
The primary domain of my multisite returns "ERR_TOO_MANY_REDIRECTS", meanwhile my two subsites, on subsite.example.org function perfectly.
This started after a ...
1
vote
1
answer
18
views
URL Redirect on GoDaddy platform [closed]
I am the IT support person for one of our clients. We have a domain hosted on GoDaddy in one account pointing to a WordPress site located in another GoDaddy account created by our client.
In the DNS ...
0
votes
0
answers
22
views
Multisite image URLs incorrect in editor
I've been driving myself nuts with this one, so I'm hoping someone might be able to help.
I have a Multisite with the latest WordPress version set to subfolders. The issue I am experiencing is with ...
0
votes
1
answer
21
views
Redirect user based on role when they try access a particular page
Please how can I redirect a user base on the role when they try to access a particular page?
I would need the code to do this, please.
0
votes
1
answer
43
views
Regex for pdf's - Old .asp Site folder structure to new WordPress Media Folder(s)
I am in the process of rebuilding a site in WordPress that was built 20+ years ago on a .asp framework (think Dreamweaver) and am having a bit of an issue creating a RegEx for documents (.pdf, .doc, ...
0
votes
0
answers
28
views
Why when I click on a link into the WP admin panel I am redirected to a link that doesn't contains wp-admin prefix, so I obtain 404 error
I have installed a WordPress instance and I a facing the following problem.
After that I access my admin panel via the URL: https://MY-DOMAIN/wp-admin I am correctly redirected to the admin panel. The ...
0
votes
1
answer
26
views
Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
wp-admin showing ERR_TOO_MANY_REDIRECTS Error and can't let me login into dashboard but Other pages loading fine. FIXED
1
vote
1
answer
26
views
External rewrite rules missing in htaccess - Multisite
I'm trying to set up some external redirects, but it seems like they are not being added to htacccess even tho it's supposed to (I think).
add_rewrite_rule('^dashboard\/([^.]+\.(jpe?g|gif|bmp|png))$', ...
0
votes
1
answer
17
views
Simple function not working on frontend and can't figure a way to debug it
I'm trying this ultra-simple snippet on my functions.php on 2020 theme, but it doesn't work
function simple_redirect() {
if ( is_page(199) ) {
wp_redirect( home_url(), 301 );
exit(...
0
votes
0
answers
10
views
How can I disable redirect domains?
I have 2 domains:
name1.com
name2.com
I want to open my website with both of domains without redirect.
In setting I set name1.com for main domain.
But if I click name2.com, I redirecting to name1.com....
1
vote
1
answer
118
views
Redirect ignore last URL segment
I have a page on my Wordpress website that I want to effectively have a wildcard on the end of the URL.
The URL is "https://www.mywebsite.com/map". I want that same page to be directed too ...
1
vote
1
answer
408
views
How to use the HTTP API (wp_remote_get) instead of cURL?
I'm running into a problemen while trying to change my cURL request into a request using the HTTP API.
Below code is my (old) cURL request. Here I'm getting some contents from an external URL. This is ...
0
votes
0
answers
14
views
Dynamic redirection [duplicate]
I have an online websites offering courses. To try a sample lesson of a course one needs to register/login. So I there is a link on the course page redirecting the user to a registration page. After a ...
1
vote
1
answer
90
views
How can I redirect a request to the site root using htaccess, if there's not a specific cookie set?
I'm using this code, versions of which I've seen referenced on various other sites, but it always redirects home page requests to /fr/ if the browser is set with French as a primary language ...
0
votes
0
answers
13
views
CPU overload spam - redirect link to wp-admin and new post
I noticed my wordpress website is over utilizing CPU resources causing my shared hosting to trottle slowing down drastically my website.
Upon doing a CPanel inspection on resources, I found this ...
0
votes
0
answers
19
views
redirect from old URL structure
i've just rebuilt a site with a couple of hundred products, and now i need to redirect the old URLs..
i'm using the Redirection plugin, but i'm not sure how to setup the redirects correctly ...
the ...
0
votes
0
answers
26
views
When i try to enter subdomain i'm redirected to main domain
I have wordpress site on my server connected to domain.pl and i also have my own html site connected to subdomain.domain.pl but every time i try to enter subdomain.domain.pl it redirects me to domain....
0
votes
1
answer
29
views
Creating a redirect option for current page url
I am running a multisite network with around 8 websites. Currently, some sites have more content than others(for example, mysite.com/uk and mysite.com/dk have more posts). What I am trying to achieve ...
0
votes
0
answers
13
views
WordPress redirect to new domain name
I would like to redirect my WordPress website to a new domain but I want to do it correctly with .htaccess file. I want to redirect only the brands page, products pages, product categories, product ...
0
votes
1
answer
102
views
Having Issue on Redirecting With Session in WordPress
I am trying to create a simple login system in WordPress using core PHP but I am getting this error message
Warning: Cannot modify header information - headers already sent by
(output started at
/www/...
0
votes
0
answers
22
views
Change my URL from https://www.domain.com to https://domain.com
I have migrated my site to Godaddy and Installed WordPress, but it get installed on https://www.domain.com on previous hosting it was simply on https://doamin.com.
Now I am having problem as some ...
0
votes
1
answer
31
views
How to redirect non logged in mobile users to page on same site?
I have seen many like this question (like How to redirect non-logged in users to a specific page?) but none have worked.
this is basically what I've come up with but it doesn't work all the time and ...