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
1
vote
2answers
2k views

https - too many redirects

I have recently enabled SSL certificate and I'm tring to use it in my wordpress site. My website's url is All plugings are disabled. I replaced define('WP_HOME','http://mywebsite.com'); ...
0
votes
1answer
12 views

Hide a Post everywhere except on redirect

I have many user contactmethods on my Profile page. If the user has not completed them all, then every time they log in they are supposed to be redirected to a "Reminder" post. But I want ...
0
votes
1answer
726 views

Custom Login Plugin Redirects to wp-login.php After Site Migration

I am using a custom login plugin I made for my site, it was working fine before migration but now it redirects to the wp-login.php page. Old Site -> http://prep.kevinmamaqi.com/ (still available ...
0
votes
0answers
7 views

WordPress redirecting Register page to login page

When a visitor wants to reach https://ostadziya.com/register, it will automatically redirect to the login page. The URL is https://ostadziya.com/login/?redirect_to=https%3A%2F%2Fostadziya.com%...
0
votes
1answer
899 views

Custom redirects with using SQL

We have pages with urls like this: http://example.com/?page_id=3&user_id=5 http://example.com/?page_id=6&user_id=9 etc. page_id and user_id located in table MySQL Database. And this table has the ...
0
votes
1answer
1k views

How to override post-new.php with custom template

How can i override post-new.php with my custom template. When i include file or simply redirect i see my template but admin sidebar is missing. I know it is not simple.
1
vote
3answers
4k views

Infinite Redirect Loop after moving to subdirectory

I installed WordPress locally and created a theme, which worked fine. Now, as I wanted to deploy the site to a webserver via FTP, I got stuck by an 301 Redirect loop which makes it impossible to ...
1
vote
1answer
750 views

Redirecting deleted posts url to another WordPress install

On a WordPress site http://www.example.com/ (MAIN SITE) there are 540000+ posts. I want to reduce number of posts to enhance site speed. I've installed new WordPress at http://www.example.com/...
0
votes
1answer
934 views

404 redirect based on url

I have a link like this: https://www.example.com/bh-job/38/?title=digital-marketing-intelligence-expert When I surf to the page I'm redirected 404 page because the page doesn't exisit. The page ...
0
votes
1answer
1k views

how to redirect page after delete post inside a post page?

so on theme single.php i want to put delete button so they can delete the post directly. After the post deleted then the page will redirect to profile page. here's the delete button html <a class=...
0
votes
1answer
12 views

Redirect an archive page to its relevant URL-friendly filtered page

I have URL-friendly filtering plugin enabled (WP Grid Builder) and I want to utilise this for the category archive page. I want to redirect an archive page https://tag.alfian.co/blog/category/branding/...
0
votes
1answer
708 views

Redirect posts to sub domain except pages

We have a WordPress site, which contains posts and pages. Now we moved posts into sub domain but we kept pages into root domain. Only Posts has .html extension and there is no difference in the URL ...
0
votes
1answer
39 views

https://mydomain/wp-admin redirects to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1

Whenever I enter https://mydomain/wp-admin while not being logged in, I get redirected to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1 With some help, I have created the ...
0
votes
1answer
1k views

Check if redirected from a specific page template

I have a page template, which redirects to the homepage using this: wp_redirect( home_url() ); Now, on the homepage is it possible to check if it has been redirected from a specific page template ...
1
vote
1answer
22 views

wp_enqueue_style - CSS Not loading - ERR_TOO_MANY_REDIRECTS [closed]

Following a change to .htaccess in public_html to attempt HTTP->HTTPS redirection CSS began failing for my site. Reverting the file didn't help so I chose to press forward with changing all ...
0
votes
1answer
2k views

My WordPress site redirects to port 8082

I have a wp site that was working on a dev server on port 8082. After we decided the site is done, we transferred it to another server. However something in the site redirects to 8082 despite the fact ...
0
votes
0answers
21 views

What does WordPress uses to redirect users from one url to another?

What does WordPress use to redirect users from one URL to another? I need to redirect people from /home to /products?latitude=xxx&longitude=xxx after getting the IP of the request and then calling ...
0
votes
2answers
915 views

Solved: redirect to another page using functions.php

I want users to change their avatar on a general site, because some plugins only work with that. for example www.example.com/members/user1/profile/change-avatar/ And www.example.com/members/...
1
vote
1answer
18 views

Wordpress on a local machine redirecting to xampp dashboard page [closed]

I just decided to learn Wordpress, I created new site successfully with name of 'unique-university' using flywheel but when I click 'OPEN SITE' It redirect me to Xamppp dashboard page 'http://...
4
votes
2answers
3k views

Wordpress multisite subdirectory redirect infinite loop issue

Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
1
vote
1answer
597 views

Redirect to “All Posts” after post update or publish in Block Editor

When anyone presses Publish or Update from the Block Editor in a CPT, I would like them to be redirected to the CPT listing page. (Users are typically editing many of the CPT at once, so this will ...
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 ...
17
votes
4answers
21k views

Disable Wordpress URL auto complete

I recently noticed that Wordpress tries to auto-complete a URL when it's not submitted in its entirety. E.g. I have a post URL that looks like this: http://www.mysite.com/some-post-title If I browse ...
1
vote
0answers
10 views

Redirect my 2020 and 2019 posts [closed]

Do you know a method to redirect all links in one go from my 2020 and 2019 posts? My permalinks are like this: https://website.com/%postname%/ I have a quite a lot of posts and I don't feel like doing ...
1
vote
1answer
23 views

Redirect homepage with htaccess, except if I enter the link adding “/home”

I'm trying to do something specific here, that may be a little complicated and I can't figure out how to do it. This is what I have with htaccess: RewriteOptions inherit RewriteCond %{HTTP_HOST} ^...
1
vote
1answer
2k views

What is causing wp-comments-post.php to redirect to the browser's IP address?

I've got a copy of WordPress running that has recently been moved off shared hosting and onto a VPS that I control. While a testing copy of the same site runs correctly on another vhost on the same ...
2
votes
2answers
4k 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
31 views

Redirect subdomain in Multisite installation?

One of my clients has a Wordpress site that is a multisite installation. They are running a new campaign that I have set up as a page under the main site at example.com/summer/. However, they sent ...
0
votes
1answer
2k 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 ...
1
vote
2answers
4k views

How to redirect to home page after registration?

I am using wordpress 4.6. I have template register form with page URL domain-name/account/?action=register I want to redirect it to home page after register but instead of that it show message "...
15
votes
3answers
14k views

Redirect function inside a Shortcode

I am developing a free plugin for connection a external support system to WordPress to be able to authenticate users on WordPress. For this, currently from the external system, the user is sent to ...
1
vote
1answer
612 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:/...
1
vote
1answer
1k 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
1answer
874 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 ...
0
votes
0answers
20 views

Better, more efficient redirecting

I'm working on fairly large corporate site and the redirects are starting to build up. It's going to get even more numerous as we are going to unpublish all blog, news and pr posts older than two ...
0
votes
0answers
21 views

Is the default value of FORCE_SSL_ADMIN documented?

(Update. I rephrased the title since I understood better meanwhile what was going on.) Dealing with an attempt to understand HTTPS redirection, I ended up seeing with a massive grep -r '...
0
votes
3answers
894 views

Force Wordpress https redirect before www redirect based on site address url

The default web address for a domain is: https://www.example.com If I set this as the 'Site Address (URL)' in Wordpress then it seems to take care of the necessary http -> https and non-www -> www ...
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 ...
1
vote
0answers
23 views

Conditional Login Redirect

I'm currently using the following code snippet to redirect admins to the admin dashboard and normal users to a specific site upon logging in. function my_login_redirect( $redirect_to, $request, $...
0
votes
1answer
2k 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
4answers
3k views

How can I disable author pages without 301 redirects?

I have disabled the author pages on my WordPress blog using the Yoast SEO plugin, but I saw that when I click the author name, it just redirects me to the homepage. Can I change the URL myblog.com/...
0
votes
0answers
17 views

Wordpress redirect to initial landing page

We have 3 landing pages, for 3 target customer types, with different deals. The issue is that customer lands on a page, then click around the other pages in the site, then goes to a generic "...
0
votes
1answer
33 views

Redirect htaccess [closed]

I need to help with redirect my page. For example I have websites https://example.com. I need to move content from https://example.com to https://example.com/blog. That is not problem and I do that ...
24
votes
7answers
18k views

Disable front end to use as CMS only?

I'm using the WordPress database and back end to administer the news for my band's website and everything is working great however I'd like to disable the front end of WordPress itself. I have the ...
1
vote
0answers
42 views

503 Service Unavailable error was encountered

When I try to upgrade PHP to version 7.4 or 7.3, I get the following error: Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity ...
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
2answers
980 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
1answer
1k views

Can't add new plugin or themes on a wordpress multisite network from the primary site as administrator. Error: ERR_TOO_MANY_REDIRECTS

I can't add new plugins or themes on a wordpress multisite network from the primary site as super administrator. It shows this error: ERR_TOO_MANY_REDIRECTS. However, I am able to access all pages, ...
1
vote
2answers
3k views

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

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

redirect to homepage once action is completed

I have a form to upload files and when the user uploads the file and click on submit button it will trigger the php code and upload the file. and it will show the message "File Uploaded" .My ...

1
2 3 4 5
36