Mobile app version of vmapp.org
Login or Join
Radia820

: Capitals in URL subdirectory not changed by htaccess Within my WordPress website I am redirecting sub directories to internal and external links. Now, when you place a CAPITAL letter in the sub

@Radia820

Posted in: #Authentication #Htaccess #ModRewrite #Url #Wordpress

Within my WordPress website I am redirecting sub directories to internal and external links. Now, when you place a CAPITAL letter in the sub dir it does not work anymore and the website does not show the same page.

mydomain.com/login/ does work properly mydomain.com/Login/ does not work properly


I'am using the following in the .htaccess file:

# Rewrite DE Domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.de$ [NC]
RewriteCond %{REQUEST_URI} !^/+subdir/ [NC]
RewriteRule ^ www.domain.com/%{REQUEST_URI}?lang=de [L,R=302,NC]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [NC,L]
</IfModule>
# END WordPress

# EXTERNAL Redirects
Redirect /login Redirect /Login

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

1 Comments

Sorted by latest first Latest Oldest Best

 

@Barnes591

Given the .htaccess file you posted, Login will never redirect to login because the WordPress-specific rules above it contain the L flag which stops processing rewrites once evaluated. So users attempting to go to Login are instead redirected to the 404 page by WordPress.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme