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

Redirect to account page

when i want to login in my online shop, the wp-login redirect to account page but even I don't login to the account? what should I do?
0
votes
0answers
16 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
20 views

Redirect htaccess

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
20 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
0answers
11 views

How can I used my GoDaddy domain (which is being used with Wix) for my new WordPress site? [closed]

I have a domain (let's say "abc.com") which I purchased from GoDaddy and have been using on Wix for a few years. However, I decided to rebuild my website on WordPress. So I purchased a new ...
0
votes
1answer
14 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
45 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
1answer
24 views

Admin (only) redirects to localhost [closed]

I've got a wordpress site which is hosted on a server, and running on docker. The site url is: http://demo.travel-itineraries.com My issue is that I'm not able to access the admin anymore because it ...
0
votes
0answers
6 views

need.htaccess 301 redirect code for any pages starting with //www.example.com to home page of //example.com

I would like to add an one catches all .htaccess 301 redirect code for any (old)url starting with https://www.example.com to the home page of https://example.com. (without www.) The permalinks are not ...
0
votes
0answers
28 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
12 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
26 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
1answer
18 views

Require wp-load.php from subdomain redirects to 404 page

I face a very complicated situation, which I will try my best to describe as accurately as possible. First of all my website is behind Cloudflare. I wrote an external .php script that loads wp-load....
0
votes
0answers
16 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
21 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
26 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
16 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
24 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
15 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
16 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
57 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
22 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
22 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
23 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
4 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
42 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
22 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
27 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
29 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
22 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
30 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
39 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 ...
0
votes
0answers
18 views

Custom function to redirect to page if condition met (too many limited products in cart)

I've made a custom plugin. I am trying to limit the number of products a customer can buy from a specific category. Most of it works, but I cannot get it to fire the redirect function once the ...
0
votes
1answer
37 views

How to redirect Webp files?

I was using all images as webp files for performance, however I've stopped using and deleted them (only .webp files) all from FTP. Now having problems with 404 errors. I would like to redirect all ....
1
vote
0answers
18 views

Wrong Redirect/Rewrite Rules?

i'm a total newbie to rewrite and redirect rules and i have some strange problems on my multisite. when i try to open www.my-website.com/blog or www.my-website.com/xmas for example, in safari browser ...
1
vote
1answer
47 views

Redirect a page id url but not the page slug

My client is asking me to force a 404 $wp_query->set_404(); if the URL is example.com/page_id=342 but DON't redirect if the URL is example.com/about even though they are the same page. I have to do ...
0
votes
0answers
12 views

How do I share a site only to one User at the time? Please help 🥺🙌

I have a problem and can't find a solution. The Problem I have a Google sheet embedded in my site and I want that only one User can enter the site at the same time so that user2 can't see User1 data ...
0
votes
0answers
13 views

Multiple permalinks for a single custom post with post ID in permalink and post title

I'd like to be able to have multiple permalinks for the same underlying post (so if the post title is modified, the people still will find the page) - So, One URL will work with 3 different options. ...
0
votes
0answers
5 views

WordPress Safe redirect redirected too many times

I need to redirect my search results to a specific wordpress page based on a query string. I am getting a 'redirected too many times' error because the string is in the permalink of the new page. How ...
0
votes
1answer
20 views

WP_List_table with form of method=GET redirects to wrong url after submit

I am trying to implement a filter button on my wp_list_table, however I need the form where the table is called to be of method=GET so the query parameters for filtering retain their values for ...
0
votes
1answer
8 views

Redirect a WordPress Multisite url after it has been change to a new one

In the multisite dashboard network admin, you can edit a site and change its url. For example, I have this url: multisite.com/old and I have change it to multisite.com/new How can I make the multisite....
0
votes
0answers
12 views

How to 301 redirect WP posts id “/c/94940894” to permalink with post name?

My posts have custom urls https://demo.com/c/100038431 How can 301 redirect to https://demo.com/post-name Thanks ..
1
vote
1answer
83 views

Issue with htaccess redirection in WP Multisite

My site structure is main site example.com and two subfolders sites /es/ and /en/ example.com redirects => example.com/es/ and example.com/en/ is the English version. What is wrong? The following: ...

1
2 3 4 5
36