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
4 views

Issues with static pages redirecting towards home.php

I have some issues with my WordPress website theme. At some point in the creation of the .php files used by the themes, something went wrong. Basically, if I use the post title to create the ...
1
vote
1answer
18 views

Can Wordpress pass through a call to an external API and return the result directly to the client?

I have a wordpress site that will be replacing an old legacy site, however the old legacy site includes a SOAP API that I won't be able to re-implement in wordpress. Is it possible for the wordpress ...
0
votes
1answer
15 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
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
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/...
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 ...
1
vote
1answer
20 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://...
0
votes
1answer
41 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 ...
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 ...
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 ...
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
32 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
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 '...
1
vote
0answers
24 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
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 "...
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 ...
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 ...
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 ...
0
votes
1answer
15 views

Why does the $_GET parameter ?search forward the front-page to the archive/blog page

I need the $_GET parameter ?search for my front-page for a third party plugin. Whenever I enter http://wp-site.tld/?search=foo I get redirected to the blog/archive page. If I enter http://wp-site.tld/...
2
votes
1answer
46 views

What is the wordpress way of displaying local external content?

I have a somewhat tricky situation. A company's internal server, running some unknown software (means I have no access whatsoever), exports data to my http server via a custom API. This data gets ...
0
votes
0answers
29 views

Redirect users from admin pages the optimal solution

On two different sites I use two somewhat different solutions. Are they different in terms of security and performance? Which is better? Are there even better ones? Solution 1. /** Redirect users from ...
0
votes
0answers
14 views

Wordpress redirect from URL with BuddyPress

I am using the plugin BuddyPress on my WordPress site and when the user clicks on their profile they are redirected to the URL "/members/USERNAME/profile/home/". However, I do not want this ...
0
votes
0answers
17 views

Using .htaccess for temporary redirects while updating live site

Apparently there are nocache rules that can be added to .htaccess for temporary redirects, such as while updating a live WP site. In researching a difficulty with my browser getting "stuck" ...
0
votes
0answers
12 views

I custom url form post wordpress

I have customized the post url link in wordpress, domain.com/post >> domain.com/cate/post but I want it to change the path to the new link. What do I do? function aly_post_redirects() { if ...
0
votes
1answer
29 views

wp_logout_url redirect not working

logout_url = wp_logout_url( $custom_login_url); echo "<a class='handler-login-link logout' href='{$logout_url}'>".__("Logout","pixel_framework")."</a>&...
0
votes
0answers
17 views

How do i make WordPress return 404 instead of redirecting on misspelled page?

In a vanilla wordpress install, a misspelled page such as https://example.com/weclome leads to a 404 error, which is fine. However, once I set custom permalinks for posts such as https://example.com/...
2
votes
1answer
23 views

Redirect “any page/page/number/” to “any page”

I've read so many similar topics but none of them matches my own request. I'd like to redirect in ht.access any page with pagination to the root-main-original page. example.com/garden/page/2 ...
0
votes
0answers
28 views

Change permalinks structure for specific tag

I am looking for a code that can change the permalink of all my post who have a certain Tag. Regular permalink structure: /%category%/%day%-%monthnum%-%year%/%postname%/ The permalink structure I ...
0
votes
0answers
18 views

WP-Admin subfolder installation

this is my scenario. I have one root wordpress installation, and one sub-folder wordpress installation, i want to show on my domain the sub folder installation of wordpress. I had edit the htaccess ...
1
vote
1answer
25 views

Double domain name in category URL-s

My site runs on the latest version of WordPress. However, I have a problem with categories. Permalinks are set correctly and my category path looks like this: example.com/category-name. Links work ...
0
votes
0answers
17 views

Wordpress Multisite one network site pages redirecting to parent site after changing URL

I have a multisite with about 30 network sites on it. I had one site that I previously had on its own url, for example instead of: https://sites.mymultisites.com/network-site it was on https://network-...
0
votes
0answers
24 views

wordpress behind aws api gateway too many redirects

I have a wordpress site in a VM, let's call it vm-site and it is behind nginx that is sitting in another vm, let's call it vm-nginx that is handling the ssl. Here is the relevant part of the nginx....
0
votes
1answer
11 views

How to show taxonomy on front page

I have set template taxonomy-event_type.php which displays just right on http://localhost:8000/types/<type_name>/. What I need now is to: either redirect when user lands on http://localhost:...
0
votes
1answer
58 views

Redirect specific URL before other redirects take place in .htaccess?

The canonical website URL will be https://www.example.com Typically any requests eg for https://example.com will be redirected to https://www.example.com by WordPress site settings. However, I have a ...
0
votes
0answers
11 views

How to disable wordpress themes and redirect users to login

I want to use my custom vuejs front-end app to display a custom post type using the REST api. I've created a folder named app inside the public folder of my vue project, inside it there is the ...
0
votes
0answers
23 views

Disable Wordpress URL by ID number

I have a post URL like this: https://domain.com/cpt/post-item/ which has a post_id: 1234. But if I change the URL to this: https://domain.com/cpt/1234/ or this https://domain.com/cpt/?p=1234 or this ...
0
votes
2answers
23 views

Woocommerce, prevent login after registration and redirect to custom URL

I'm looking for a way to prevent the automatic login after registration (i.e. by logging him out after registration) and redirect him to a custom URL. So far I'm only able to do both of them ...
0
votes
0answers
26 views

How to redirect a unique link based on login status

I have webstore on woocommerce, and on one of my wordpress pages (that page is not woocommerce page, but just wordpress and it is edited by Colibri free theme) I have download links for some products. ...
0
votes
0answers
5 views

Keep the old referrer after failed login

I have the following problem that I couldn't find any solution for. I have a simple custom login page, which I've managed to set up, so it redirects to the referred URL the user came from. The problem ...
2
votes
1answer
48 views

How to exclude a directory from WordPress permalinks in a Multisite environment?

The scenario is as follows: A multisite install with three sites: site1.com (admin) site2.com site3.com Q: How to exclude a folder located in the root directory, which should also be associated with ...
1
vote
1answer
47 views

htaccess redirect - replace special character

In my previous post, I asked about how to 301 redirect all .com/language/X URLs to .com/members/?members_search=X using htaccess. Thankfully I got help, and the solution was RewriteRule ^language/(.*)...
0
votes
0answers
14 views

whenever I am visiting to subdomain it keeps redirecting to Main domain

I have created a Subdomain and installed wordpress on it, I have also deleted .htaccess file from subdomain directory. but it keeps redirecting to main domain. i have also added these line to Wp-...
0
votes
0answers
12 views

Cannot find password

Our site www.example.com is built with WordPress. www.example.com is always redirected to alumni.example.com/?page_id=175/, however I don't remember how this redirection is set. I wanted to sign in ...
0
votes
0answers
29 views

Redirect to previous url from default wordpress login

Lordy, I hope someone can help, I've run full circle and can't find a solution that works. So we have posts that are locked, like this: https://inthebunch.co.za/2021/03/peter-sagan-delays-season-start-...
1
vote
1answer
37 views

htaccess redirect not working

I'd like to 301 redirect all .com/language/X URLs to .com/members/?members_search=X. Test case: http://example.com/language/french should 301 redirect to http://example.com/members/?members_search=...
0
votes
0answers
19 views

Wordpress URL auto correct returns pages from a different category. Can this be changed?

I have categories set to be part of the url and there are pages that start with the same slug but in different categories. /category-A/123-hello-world /category-B/123-some-longer-slug-here If a url is ...
0
votes
0answers
23 views

How to remove redirection

I have two sites in a local environment over Nginx server. superbiajuridico.test (site 1) quercusjuridico.test (site 2) These sites are very similar (same theme and similar content). WordPress showed ...
1
vote
1answer
34 views

SSL and www to non-www redirection works only on homepage - Wordpress

I've enabled SSL on my Wordpress website and set redirection from www to non-WWW via the following code placed in .htaccess: # REDIRECT WWW TO NON-WWW RewriteEngine on RewriteCond %{HTTP_HOST} ^www\....
1
vote
1answer
69 views

How to remove wordpress directory slash

I have installed a website in my domain directory like example.com/website. The main issue or problem is that it redirects me to example.com/website/. I never want redirection and I just want that my ...

1
2 3 4 5
36