All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

Weird 301-redirect to http from https only happening with CF as proxy on /wp-admin on www subdomain

I have a wordpress blog on an EC2 instance on AWS using the AMI image aws-marketplace/bitnami-wordpress-6.3.2-6-r09-linux-debian-11-x86_64-hvm-ebs-nami-7d426cb7-9522-4dd7-a56b-55dd8cc1c8d0 In ...
user1015149's user avatar
0 votes
1 answer
46 views

Special redirect NGINX Wordpress removing last segment

I need some guidance on how to redirect this the proper way... I have a site on nginx and a bunch of malformed URL's (crawled by Search Console) that I need to redirect with 301. My CMS is Wordpress ...
btgen's user avatar
  • 11
0 votes
0 answers
83 views

Using Rank Math REgex for subfolder redirects to home

So short summary: im a SEO specialist working on a website that has over 1000 404 pages due to a translator app. The subfolders /de/ /fr/ /es/ /en/ and URL's within the subfolder need to be redirected ...
user1043312's user avatar
0 votes
1 answer
43 views

How to block all requests starting with "?mode" on Apache?

Recently my website was hacked and now I have around 20000 indexed links in Google that were redirected to other sites via my website. Now I have stopped all redirects but I have too many request on ...
Ahmad Eidizadeh's user avatar
1 vote
0 answers
76 views

htaccess: I can't redirect to nested subfolders correctly on the WordPress app

I have a multilingual WordPress site that has two languages: en and tr, It's site A. I wanna put my other WordPress site inside /tr/shop/ folder, It's site B. Just need only these rules: /en/anything/...
user avatar
-1 votes
1 answer
217 views

Cloudflare DNS keeps redirecting to a wrong site on the same server

I have a strange DNS setting glitch here. We are rebuilding and migrating two old sites to a new VPS server. They coexist now as below. We use Cloudflare DNS (NO reverse proxy). Site A: aaa.example....
Acon's user avatar
  • 1
1 vote
1 answer
454 views

Default WordPress .htaccess rewrites causes default server page to load due to no default index page present for the root URL

I could really do with some help here please. I know this is a WordPress issue now through testing. If I allow .htaccess to process rewrites on my Wordpress sites by adding AllowOverride FileInfo to ...
J O's user avatar
  • 21
0 votes
2 answers
47 views

route your blog from xyz.com/blog/ to abc.com/blog/

My WordPress website domain name was abc.com (let's say) now due to a new partnership agreement the domain name is changing to WordPress xyz.com (let's say). I tried this answer https://stackoverflow....
paul's user avatar
  • 103
1 vote
1 answer
654 views

Nginx disable https redirect for 404+http uri

I have HTTPS redirect in nginx.conf But if the requested URI is HTTP and 404 - I don't need a redirect. Is there any solution for this specific configuration? Also is there a possibility to turn off ...
allwillburnn's user avatar
1 vote
1 answer
328 views

Nginx + Wordpress language redirect wrong with default language

Nginx + Wordpress language redirect wrong with default language Sorry for duplicate this questions here: Nginx + Wordpress language redirect All works but for the default EN language. I just want to ...
Matthew's user avatar
  • 11
1 vote
1 answer
7k views

How do you redirect URLs with a query string with htaccess?

I want to redirect pages like : example.com/fr/opportunites/?sector_cat=bourses-detudes&ajax_filter=true To example.com/fr/bourses-detudes/ the second page is a post type page created with ...
LH AL's user avatar
  • 11
1 vote
0 answers
449 views

Nginx redirect wp-admin in root to wp-admin in subfolder

I'm running a multisite in subfolders to facilitate multiple languages. My hosting provider uses the following Nginx config to fix the /wp-admin/ directives for the multisite environment: if (!-e $...
Jelle Wielsma's user avatar
1 vote
0 answers
103 views

WP with reverse proxy: Accessing Admin section from subdomain

I have a blog on a subdomain (WP installation), which for SEO reasons I’m moving to a folder structure. The subdomain and the main site are on different servers/platforms, so I’m using a reverse proxy....
Dalv's user avatar
  • 11
1 vote
1 answer
458 views

.htaccess Redirect 301 - Single pages work fine, homepage doesn't

I'm trying to redirect some specific pages to the new ones on my new site (these redirects work fine) and, finally, my homepage OR (even better) my homepage and all the pages which I didn't redirect ...
Daniele Carollo's user avatar
0 votes
1 answer
775 views

403 redirect not working .htaccess

I want to block users from India from the website and redirect them to a custom 403 page. Here's the code that i placed in .htaccess file: ErrorDocument 403 /403.html deny from 1.6.0.0/15 deny from 1....
Angira Kartik's user avatar
0 votes
1 answer
509 views

Nginx Redirect Wordpress Post URL from "Post Name" to "Category Post Name"

How to make a 301 redirect using Nginx from the Wordpress URL "post name": example.com/best-movies-2020/ to "category post name": example.com/movies/best-movies-2020/ I'm a nginx ...
R.M. Reza's user avatar
  • 155
0 votes
1 answer
330 views

Delete random numbers from link with 301 redirect nginx

I have to delete a random numbers from permalink structure of my site working on nginx server by mask: DOMAIN.COM/YEAR/postname/RANDOM_NUMBERS/ → DOMAIN.COM/YEAR/postname/ I've tried something like ...
Nar's user avatar
  • 3
0 votes
1 answer
38 views

nginx subdomain config resolves index.php ok but redirecting other files to server ip

This configuration resolves correctly / or /favicon.ico but other paths are being redirected to http://54.236.189.131/wp-includes/css/dist/block-library/style.min.css?ver=5.3 And actually I'm not ...
Enzo's user avatar
  • 103
1 vote
0 answers
243 views

basic auth for all pages except one

I have a wordpress page and want to add basic auth to the page, except for the wordpress rest api (url: localhost/wp-json/xyz)! The main problem seems to be the redirect that happens in the standard ....
user1970122's user avatar
0 votes
1 answer
221 views

Wordpress Hack on linux apache server - no detectable changes in files [duplicate]

I have a weird hacking case with one of my wordpress sites. It's a small site, basically shows 5 blog posts on whether or not the office will be open/closed. It's not too complicated or anything, but ...
Brendan's user avatar
2 votes
1 answer
2k views

htaccess: nested wordpress folder redirect

I've been trying for hours and am already a bit on the edge about this, so I am probably not seeing the obvious. I have two WordPress sites, one is my "main" page which people see when they come to ...
mluerig's user avatar
  • 123
3 votes
2 answers
5k views

wp-admin redirect loop when behind apache reverse proxy

Its my first post in Server Fault, so I'm sorry for any faux pas :) Problem: When I try to access "http://dummy_server/wp-admin" that is behind an apache acting as a WAF, it gets stuck in an infinite ...
Fran Gimenez's user avatar
0 votes
1 answer
229 views

Wordpress + Cloudflare SSL redirects to apache root?

We recently deployed our new website and when trying to use it over SSL with cloudflare, it redirects to the Apache root dir? I generated origin TLS certificates and downloaded those from cloudflare ...
Emil's user avatar
  • 1
0 votes
0 answers
258 views

404 routing issue - AWS Linux Wordpress site

We are running a WordPress site on a AWS EC2 Linux instance and have created custom 403 and 404 error files (both html files). The files are located in the root of the website. The root .htaccess ...
Paul's user avatar
  • 103
1 vote
1 answer
3k views

Apache: Redirect all .html AND .php requests to folder + WordPress

After a relaunch I have a bunch of dead backlinks pointing at URLs with .php or .html file-extensions. It would be nice to redirect them in bulk using .htaccess and the mod_rewrite module. The ...
schuggerleo's user avatar
0 votes
1 answer
232 views

Wordpress - Non-www URL redirect to www using .htaccess file [duplicate]

I want to redirect non-www URL to www URL in WordPress. I added code for the redirect but I see that I only redirect URL internally but not accessible from the externally. I redirect to apache ...
Dhaduk Mitesh's user avatar
1 vote
2 answers
208 views

Where to redirect HTTPS on a WordPress LAMP setup? [closed]

[1] If I have sudo on LAMP VMs (Ubuntu 16.04 Apache 2.4 php 7) running WordPress website, where do I force redirect HTTP → HTTPS? Virtual Hosts .htaccess wp-config.php functions.php iThemes ...
Rhecil Codes's user avatar
2 votes
2 answers
1k views

Redirect old domain to new domain with same URL structure

I am trying to redirect URLs at my old WordPress domain to the same URL structure but at my new domain. So for example: oldsite.com/post-name-1 would redirect to newsite.com/post-name-1 oldsite.com/...
BuiltBySam's user avatar
6 votes
2 answers
14k views

Redirect all urls to the root except /wp-admin and wp-json

I try to redirect all urls to the root except for the wordpress administration and the wordpress REST API. I have these rules in my .htaccess: <IfModule mod_rewrite.c> RewriteEngine On ...
Quentin Brosse's user avatar
0 votes
0 answers
58 views

Weird redirects on website

I'm renting a server (centOS 5.something), on which I run several websites. One of them runs on Wordpress, and recently Google Webmaster tools reported an increase in mobile crawl errors. I checked, ...
SchmitzIT's user avatar
  • 101
0 votes
1 answer
64 views

I've a wordpress website running running nginx + php7-fpm. Wordpress url redirection

My clients wordpress websites is serving many 404 requests. After checking I could see that the 404 URLs are like /wp-content/uploads/2015/8/a.png&_nc_hash=ASsvdeeknbhs and it throws 404 error. ...
Anto's user avatar
  • 139
0 votes
1 answer
217 views

How can I tell what's redirecting a web page request?

For some reason I'm getting redirected to https on my local, which is weird. Is there any way I can trace where the request goes? My question is more for a general purpose because this specific case ...
alanj's user avatar
  • 113
-1 votes
1 answer
2k views

I get "Request exceeded the limit of 10 internal redirects" in Wordpress under Apache

I've added a post in Wordpress and when I try to see it in my browser I get error 500. This is the configuration in apache.conf: <VirtualHost *:80> ServerName new.comelody.com ...
kambi's user avatar
  • 127
1 vote
1 answer
51 views

redirecting a subdirectory to some other hosting server fluently [closed]

I am hosting a server on which I would like to have a /articles folder. I would like to redirect all calls to this name www.myserver.com/articles to a wordpress that is being hosted on another server. ...
Ted's user avatar
  • 111
0 votes
1 answer
542 views

Wordpress, tomcat, apache2 and nginx: redirect loop on wordpress

I've installed tomcat for one website and apache2 for another (wordpress). The problem happens with wordpress website. There is nginx for reverse proxy and here it is: server { listen 80; ...
maximus's user avatar
  • 145
1 vote
2 answers
3k views

Nginx Rewrite rule core PHP + Wordpress | Not able to login to WP-Admin panel

I have a static website developed in core PHP (No framework used) and I have also installed a blog using wordpress in a subdirectory under same domain. Like : example.com/blog Since the main site is ...
Sachin Singh's user avatar
0 votes
0 answers
58 views

Nginx redirection

I am using nginx as my web server and have posted some links to it on Facebook. I have just changed my link from example.com to example.com/en/. Consequently, all the previous links will be unusable ...
JohnsonGoey's user avatar
-1 votes
1 answer
255 views

I can't prepend HTTP://WWW to the URL when I redirect to the same domain

There is this WordPress application on OpenShift that uses CloudFlare as DNS server. OpenShift gives us a URL such as app-user.rhcloud.com and allow you to add alias. Such as www.website.comand ...
Victor Ferreira's user avatar
0 votes
1 answer
135 views

Wordpress on OpenShift will not load (310 error) without "www." on example.com in General Settings

I installed a Wordpress site on an OpenShift Online [PAAS] account. If I configure Wordpress Address & Site Address (in General Settings) both to http:// example.com (without the space; I added ...
cellepo's user avatar
  • 125
0 votes
1 answer
585 views

Forward Slash within a reverse proxy for Wordpress

I have a Wordpress website within a reverse proxy that generally works fine. I have noticed a issue today where I delete the trailing forward slash it redirects me to the target (non reverse-proxy) ...
Rob's user avatar
  • 1
1 vote
1 answer
12k views

Removing port from nginx redirect

I have a domain so www.mysite.com running app Django. In this server I created a Blog with WordPress. www.mysite.com/blog Nginx Django app: upstream django { server 127.0.0.1:8001; } server { ...
Vanderson Ramos's user avatar
2 votes
2 answers
996 views

wordpress on openshift custom domain “too many redirects” error [closed]

wordpress on openshift custom domain "too many redirects" error for wp-admin page, works on openshift default domain. My custom domain is: https://sesjau.tk/wp-admin . So I check siteurl and home in ...
Daniyal Javani's user avatar
2 votes
2 answers
2k views

WordPress behind haproxy: $_POST being reset

So here's the sitch: Load balancer (haproxy) delivering to 3 web servers and a database server, 5 servers in total with memcache sessions being shared between the web servers. I can confirm that ...
Nathaniel Schweinberg's user avatar
3 votes
1 answer
5k views

302 redirect loop with nginx and Wordpress

I've been searching a couple of hours in Serverfault trying to solve this problem but I can not find a solution. What happens is: I am having a 302 redirect loop using wget in my site, but not using ...
Alejandro Alcalde's user avatar
2 votes
2 answers
284 views

Redirect 12,000 pages from SPIP to Wordpress

I'd like to switch from SPIP to Wordpress and redirect all SPIP's URLs to Wordpress ones. The format for an SPIP URL is: example.com/spip.php?article{ID}, for example: example.com/spip.php?article123 ...
user218564's user avatar
-1 votes
2 answers
77 views

Redirecting from domain to a wordpress site [closed]

Is it possible to configure redirecting from mydomain.com (purchased from 1and1) to a wordpress site that is built/hosted on wordpress? Will I run into search engine/SEO issues if going this route? Is ...
laconicdev's user avatar
0 votes
3 answers
497 views

How do I redirect my website from non-www to WWW using Apache2? [closed]

I'm currently trying to set up my personal webpage. I am using a VPS and have manually installed Wordpress, and everything seems to work... except if I go to the non-www version of my website, it ...
Andrew's user avatar
  • 3
0 votes
4 answers
5k views

Nginx - Wordpress Redirect Loop

I'm using nginx as a frontend for apache2. Apache2 will handle all dynamic content. This is my main file with nginx being a frontend for apache and having all dynamic pages forwarded to apache2: ...
ssabetan's user avatar
-1 votes
1 answer
370 views

ssl 301 redirect for nginx and wordpress

What would be the best method to load https in wordpress for a specific url? I'm using events manager pro and would like to have the event pages load securely with out using a plugin.
neptune_surf's user avatar
0 votes
1 answer
3k views

Nginx Rewrite with a question mark

I am trying to force Nginx to redirect/rewrite one URL that uses a query string /?cat=20 to /category/lighttpd/. Here is what I tried, which is not working: location ~ /\?cat=20 { rewrite ^ http:/...
Kevin Worthington's user avatar