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
2
votes
1answer
1k views

Firing a function AFTER redirect

I am using a function that redirects the user to a custom page, rather than wp-login in the event of errors. In my case I am using the Http Referer function to send the user back to the same page ...
0
votes
1answer
9 views

Redirect logged on user to a specific page based on wp user role, page id

I am trying to redirect users(subscribers) to a particular page based on the following conditions 1. (subscriber) user is logged on 2. specific page id is matched 3. wp user role = subscriber which is ...
1
vote
0answers
6 views

Created a new subdomain with same content. Should I add a redirect in my old subdomain?

I'm managing our WordPress site and we had a name change in the subdomain. Instead of changing the subdomain name, our IT created a new subdomain name and we just copied everything from the old one. ...
1
vote
0answers
19 views

How do I stop WordPress from redirecting to WP_HOME?

I have a Node application installed on mywebsite.com and I'd like to have a Wordpress site under mywebsite.com/blog, hosted on a different server running Apache. On my Node server I set the routing to ...
1
vote
1answer
4k views

Redirect users after first login

I want to redirect my users to a page after they logged in for the first time. I also noticed some solutions like a redirect after the user was registered (redirect after first 48 hours) but the ...
-1
votes
0answers
10 views

my website is not ranking while url are indexed [closed]

I have a problem with my website. I have indexed the URL but my keywords are not showing in ranking how to solve this issue? please guide me in brief
0
votes
1answer
1k views

Domain redirect to wp-admin/setup-config.php file

I have a problem with my WordPress site, it is working well until today. The problem is when I type my domain name it is redirecting to wp-admin/setup-config.php file. I have no idea why this is ...
0
votes
0answers
16 views

Same post opening multiple times

From few days whenever I open any post of my site multiple pages of same post opens in the same tab. (I checked it by just right clicking the left arrow icon to check history of same tab and 3-4 pages ...
1
vote
1answer
322 views

Site kit Google Analytics setup giving Error: {“error”:“invalid 'redirect_uri'”}

I was facing some hard time configuring the SSL for my Primary Domain and Subdomain and forcing HTTPS link over HTTP: I generated the SSL Let's encrypt certification and then found a solution to add ...
1
vote
1answer
26 views

Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file

I am trying to redirect not logged in users from the "/purchaseads/purchase.php" to custom registration/login url "/purchaseads/registrationurl"on wordpress website. Unfortunately ...
0
votes
0answers
8 views

How to redirect all 404 errors to posts with the same title on a third level URL?

I have a news site and it has been running for 13 years. All old posts are moved to a third level archive. But with the move there are a lot of 404 errors. I would like to redirect all errors from the ...
2
votes
2answers
3k views

Remove Query String from URL on Redirect - Redirection Plugin

I am trying to remove the query string from my URLs when I redirect them but it is preserving them. I can't get the regex right. Also, I have multiple templates that redirect to different urls so I ...
1
vote
1answer
585 views

Redirect all posts permalinks from “.html” to “/”

How can I redirect all posts permalinks from .html to / in WordPress? To be more clear, for example, a post URL like this: http://example.com/%category%/%postname%.html To be redirected to: http:/...
0
votes
1answer
847 views

Bookmark anchor link to load another page first before completing?

Question: is there a way for a link to an anchor bookmark to arrive at its destination by loading another page first? I'm developing a vertical-scrolling style website where the home page displays ...
1
vote
1answer
1k views

Admin sometimes redirects to HTTPS

I have multiple Wordpress installations hosted at Hostinger. Sometimes, when I save a post or, as happened right now, just tried to access wp-admin, it redirects me to HTTPS version of the website. ...
1
vote
1answer
888 views

Multisite Redirection to new domains

I have a multisite website with 5 domains in WordPress which uses WordPress MU Domain Mapping plugin. I want to redirect every subpage to new domain, but we will be still using the homepage, because ...
0
votes
3answers
2k views

My site is being redirected to itself

I have been told that my website is redirecting to itself – but I don't know what this means. I was told that this is the reason it does not show up in Google and Yahoo. My question is, where is the ...
0
votes
1answer
1k views

Pagination redirect set in .htaccess file is not working

I'm trying to redirect like below but it's not working. http://example.com/page/2 -> http://example.com/item/page/2 Below is the source of .htaccess file: RewriteEngine On RewriteCond %{...
0
votes
1answer
8 views

Every time I try accessing a post it redirects me to the feed

I'm having some issues with my posts. Every time I try to acces one it leads me to the post feed. Even if I try manually writing the URL it leads me to the feed.
1
vote
1answer
30 views

Force redirect not logged in user to (wp-login.php or wp-admin) for specific page

I am currently using a Wordpress plugin (Pagerestrict plugin which references URLS based on Page ID/Slugs)to restrict certain pages to logged in users only. This plugin works fine with standard ...
0
votes
0answers
18 views

How to remember which page the user was on before logout?

I want to make a website with restricted user access. I have found several plugins to do that. Now I want my wordpress website to remember the page the user was on before they logout. Besides that, I ...
3
votes
2answers
2k views

Why wordpress multisite redirect to wp-signup if site exists?

I just create a site on my Multisite domain (example.com), for instance site1.example.com After this, I try to enter on https://site1.example.com/wp-admin, but I'm redirected to https://www.example....
5
votes
1answer
2k views

301 Redirects for Changed Permalink Structure & Category Base

I'm redeveloping a site on a fresh WP install. The old site had the following permalink structure: domain.com/CATEGORY/POSTNAME/ The new site has the following permalink structure: domain.com/YEAR/...
1
vote
1answer
899 views

Woocommerce redirect thankyou page based on product ID doesn't empty Cart

In WooCommerce, I am using the following code to redirect users to custom thank you page after purchase of specific product. It gets the Product ID then redirects based on that ID. I've pasted the ...
2
votes
0answers
20 views

Sub-subdomain getting redirected to main domain

I'm working on a multisite network. I intend to make it a subdomain based network but cant seem to make it work because of the redirects. The main multisite network resides under app.trainergoesonline....
1
vote
1answer
8k views

Redirecting to old domain, tried everything, nothing works

I've moved a Wordpress site from one domain to another. I have changed the siteurl and home options in the wp-options table, added this tags into wp-login.php file: update_option('siteurl', 'http://...
0
votes
0answers
12 views

Display value of the GET parameter in a new URL page

Here's what I'd like to achieve: retrieve the GET value of its parameter from http://mysite/testing/?name=302Beep store it in a cookie redirect to http://mysite/dashboard display '302Beep' in http://...
1
vote
1answer
1k views

How to pre-fill Google Forms URLs with logged-in WordPress user's data

We need to have our logged-in users' data (username , Email , First Name , Last Name) pre-fill the links to Google Forms existing on our site. Why? We have Google Forms spread out on our site that ...
1
vote
1answer
1k views

What is the right way to redirect all traffic to HTTPS?

What I want to do I manage a website on a hosting service that recently enabled the option to activate a free SSL certificate. I want to redirect all my traffic to the HTTPS version, and make it so ...
0
votes
1answer
29 views

Redirect Main Home Page url to category URL without plugin

I am looking for best method without any plugin that will redirect my homepage to category url. e.g Main page: https://uk49sresult.co.uk/ Direct redirect to this one. Category URL: https://uk49sresult....
5
votes
2answers
965 views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
0
votes
2answers
2k views

Why is WordPress redirecting to homepage after GET form submit?

<form method="get" action="example.com/?category=1"> <input type="submit"> </form> action parameter may be any page etc. but it always redirect to homepage. If I change method ...
2
votes
3answers
23k views

after login that will redirect user role into a page

I am trying to create a hook that when a user login, it check the user role.. if the user role is jsa_contributor then it redirect into specific page. but it seems my code didn't work. This is the ...
1
vote
2answers
2k views

Two Wordpress installations: One in root and one in sub directory - no images in subdir installation

The setup: I have two Wordpress installations. One in the root of the Server and one in a subdirectory, every installation has it's own database. The subdirectory installation is connected with a ...
0
votes
2answers
798 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(...
4
votes
1answer
1k views

Site redirects to wrong url when saving settings

I have a subdomain: https://blog.example.com/ I forcibly redirects to subdirectory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. Now the website and admin ...
0
votes
1answer
15 views

production site routes to staging site after cloning

Hello I am new to wordpress, our website was down (due to plugin update) I was not even able to access the admin panel due to this, so I went to the directory and copied from our staging directory (...
1
vote
3answers
2k views

flush_rewrite_rules not working on plugin deactivation, invalid URLs not showing 404

i'm just about to release a community plug-in and have a few last anoying issues. First, whenever i visit a page that would not be valid for the plugin, www.mydomain.com/forms/tester it will take me ...
0
votes
1answer
617 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 ...
1
vote
2answers
5k views

redirecting and showing notice from previous action

I am writing a plugin. When an item (painting) is clicked for deleting while a list of them is shown at the dashboard, I want to delete it and then redirect the user to the previous page shown. So the ...
0
votes
1answer
16 views

Re-Direct ALL Users to the Home Page IF not logged in

I just read the codex on wp_redirect(); and found an example that I modified. Problem is, all I get is an error in my browser saying "The page isn’t redirecting properly". I need all users, ...
0
votes
1answer
10 views

Using Argument from Function to Re-Direct Visitor (WordPress)

After googling around and reading, I found the code below. Problem is, it's been a few weeks and I've lost the original post. I have now done my best in understanding how to create a function hooked ...
3
votes
1answer
539 views

Bulk 301 redirect for custom post type

I've amended the URLs for my custom post type from: url.com/jobs/job-name to url.com/jobs/job-location/job-name Problem is, because this isn't a standard rewrite wordpress doesn't do the 301 ...
0
votes
0answers
12 views

How to regenerate RSS feed URL like FeedBurner?

I own several podcasts and faced the problem of changing rss feed on different podcast directories several times when I changed hosting. I have been looking for a solution to this problem for a long ...
3
votes
1answer
693 views

Specific URL has 403 Forbidden status code

I'm debugging a Belgian WP website: slotenmakerbelgie.com. The problem is that I get a forbidden status on a specific URL: slotenmakerbelgie.com/error/ (with and without trailing slash at the end) I ...
0
votes
1answer
11 views

Wordpress on Ubuntu - “File not Found” for home.php - Trying to Redirect to Root Folder

I recently did a one-click installation on a Ubuntu server set up via Vultr. There is a PHP URL path (site.com/home.php) that I want to 301 redirect to the root folder (site.com/) but nothing has ...
0
votes
0answers
22 views

where can i see wordpress automatic redirect History

WordPress Redirecting all the permalink changes automatically. for example if i change my post permalinks from : site.com/%postname% to site.com/%post_id%/%postname% wordpress automatically redirects ...
2
votes
2answers
5k views

Disable domain redirect

Desired behavior: http://www.situationware.com should stay at www.situationware.com, no registration required. Currently wordpress is automatically redirecting to the Amazon hostname ec2-107-22-241-...
1
vote
0answers
14 views

How to properly encode url with parameters for redirect_to

I´m trying to encode url with parameters to inject in 'redirect_to' param of the current url. This is my code : if( !is_user_logged_in() ){ $page = get_post_by_name( 'page', 'custom-log-in' ); ...
1
vote
1answer
3k views

301 Redirect all page and post urls from .html to /

I have a current site where all URLs end with .html. I created a new site and the URLs are pretty much the same but without .html. I've been trying codes found here in my .htaccess file and most ...

1
2 3 4 5
35