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
15 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
18 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
26 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
17 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
20 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
16 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
40 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
11 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
4 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
0answers
5 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
4 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
55 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
vote
1answer
21 views

Redirect specific page in Wordpress for first time visit

I tried the following to redirect one page on the first visit: function check_for_redirect() { if( is_page( 8219 ) ) $days_to_expire = 30; if (!is_admin() && !isset($_COOKIE['...
1
vote
0answers
29 views

Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership

If the user is subscribed to one of the three memberships, they have access to the visitors profile tab (www.site.com/members/user/visitors) but if they are not subscribed, if they click on the ...
0
votes
0answers
9 views

How to remove post links (which are 301 redirected) from blog feed?

I have 301 redirected some posts within the blog using the Redirection plugin. But in the blog feed, category feeds and paginated links (Previous, Next), those old post links still exists. How to ...
0
votes
0answers
15 views

Implementing a multilingual WordPress site by installing several instances of WordPress and redirecting

I am developing a website with WordPress which is going to support 4 languages. My primary language will be English and there will be 3 other languages. For this reason, I have installed WordPress on ...
0
votes
0answers
11 views

how to redirect non logged users to login page and redirect to another page with saved data?

m developing a page and using this free simple Favorite Post plugin to add favorites to users. currently its working for logged in users only. i need to show it to non logged users and when click on ...
0
votes
0answers
30 views

Internal Redirections?

I'm facing too many redirections issue with the REST API, and only with it, GUI works like a charm. I used cloudflare as a CDN. When I disable Cloudflare, REST API is working, else not. I was testing ...
0
votes
1answer
16 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. ...
0
votes
0answers
9 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 ...
1
vote
1answer
30 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 ...
1
vote
0answers
59 views

Force WordPress to load from site's hostname

I am looking for a WP php rule to always serve any webpage via the desired host without adding a redirect rule which is not an option in this case. see below. We have our main site on one server and a ...
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
34 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
0answers
23 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....
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://...
0
votes
1answer
17 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 (...
0
votes
1answer
18 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 ...
0
votes
0answers
15 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 ...
0
votes
1answer
14 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
23 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 ...
1
vote
0answers
21 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' ); ...
2
votes
0answers
27 views

How to disable redirect on pagination first page

When I pagin to my.site/mypage/page/1 its redirect me to my.site/mypage/, i try to disable it on (template_redirect, do_redirect_guess_404_permalink, redirect_canonical) hooks but it not help here is ...
0
votes
1answer
37 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....
0
votes
1answer
10 views

Page access only from a specific page in wordpress website

I would like to know if it possible to have a page that open if and only if the visitor comes from a specific page (which in my case would be the homepage). So for example, the visitors land on the ...
3
votes
2answers
27 views

Wordpress site redirects to different wordpress domain on the same server after reuploading db backup

5 WordPress sites (that is all of them) on our server (Apache, Ubuntu) were infected by some malicious code injecting javascript. I have deleted all the wp databases that were full of the injections ...
0
votes
0answers
148 views

Wordpress /wp-admin redirect to wrong port in docker

While installing an existing Wordpress installation in a docker container, I've been unable to access the wp-admin pages. The site and pages load perfectly but when browsing to https://example.com/wp-...
0
votes
0answers
24 views

Any way that guest users see the site as registered users?

My theme does a redirect when author profiles are given like this in author.php: if ( ! is_user_logged_in() ) { wp_safe_redirect( home_url() ); exit; } Is there any way for wordpress to ...
0
votes
1answer
29 views

How to avoid redirect 302 in wordpress to the author pages?

In my theme when I try to access an author's page when I'm offline, it does a 302 redirect to the home page, I was looking at the theme files and in author.php I see the following code that I think ...
0
votes
1answer
18 views

How to delete a post and keep its slug to refer to another post

I've 2 almost identical posts: https://webscraping.pro/reliable-open-proxies-for-business-directories-scrape/ https://webscraping.pro/reliable-rotating-proxies-for-business-directories-scrape/ I ...
1
vote
1answer
19 views

Need Help Correct Regular Expression Redirect Code

I have custom permalinks with this code /%year%/%monthnum%/%postname%.html and now switching to another custom permalinks %postname%.html so obviously all my content is now 404 not found, in yoast ...
0
votes
0answers
6 views

Redirection to `edit.php` after saving in the backend

I've been battling an issue with one site I manage and haven't been able to determine where redirection is happening. I've seen other posts online about this issue, but the suggestions don't seem to ...
0
votes
0answers
97 views

Need to redirect from Apache2 Ubuntu Default Page to home page in wordpress

I have a subdomain like https://faq.example.com/faq this page works fine. changed URL like main domain https://example.com/faq this also works fine. But when I go to this page https://faq.example.com ...
1
vote
1answer
54 views

Server (WordPress) redirects files that are not supposed to (using htaccess)

I use .htaccess to redirect some addresses or avoid some addresses to be redirected. Basically, I have all things redirected to another domain except for certain addresses that I specified. So example....
0
votes
1answer
109 views

Unexpected (virus) redirect started to happen

After the site jopran-kaffee.de has been up and running for a few months, suddenly an unexpected behaviour started to occur. During the first visit the home page notifies about using cookies, and once ...

1
2 3 4 5
35