Wordpress escaped encoded (hex) URL case sensitive problemChanging URL of Wordpress Post CompletelyWordpress...
What's the "normal" opposite of flautando?
Single word request: Harming the benefactor
Can Mathematica be used to create an Artistic 3D extrusion from a 2D image and wrap a line pattern around it?
How to detect if C code (which needs 'extern C') is compiled in C++
Is it necessary to separate DC power cables and data cables?
Shifting between bemols (flats) and diesis (sharps)in the key signature
Should I tell my boss the work he did was worthless
meaning and function of 幸 in "则幸分我一杯羹"
How to draw cubes in a 3 dimensional plane
Filtering SOQL results with optional conditionals
An alternative proof of an application of Hahn-Banach
How did Alan Turing break the enigma code using the hint given by the lady in the bar?
Reversed Sudoku
How can The Temple of Elementary Evil reliably protect itself against kinetic bombardment?
When a wind turbine does not produce enough electricity how does the power company compensate for the loss?
Hotkey (or other quick way) to insert a keyframe for only one component of a vector-valued property?
Are all players supposed to be able to see each others' character sheets?
Difference on montgomery curve equation between EFD and RFC7748
What are some noteworthy "mic-drop" moments in math?
Am I not good enough for you?
Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?
UART pins to unpowered MCU?
Intuition behind counterexample of Euler's sum of powers conjecture
Was Luke Skywalker the leader of the Rebel forces on Hoth?
Wordpress escaped encoded (hex) URL case sensitive problem
Changing URL of Wordpress Post CompletelyWordpress SSH Upgrade ProblemWordpress permission problemCase sensitive folder names in MAMPIs the hostname case sensitive?How to make Apache case sensitive on Windows and/or Mac?Wordpress slow when publishingVagrant synced folders aren't case sensitiveWordpress 404 with utf8 percent-encoded characters in URLPermalinks in Wordpress not working on Google Cloud Platform
I have been experiencing a problem yesterday. My site is in Hebrew language. MY site is built on Wordpress. The problem is related to escaped encoded posts URL only. IF the post URL has escaped encode in uppercase it works, if in lowercase, it returns 404. I want both to pass without a problem. I am hosting my site on godaddy shared hosting. Is there any option to let both uppercase and lowercase be accepted and show the same post?
For example:
http://domain.com/%d7%9e%d7%a6%d7%9c%d7%9e%d7%95%d7%aa/ (this is what my site have)
Google crawled it as:
http://domain.com/%D7%9E%D7%a6%D7%9C%D7%9E%D7%95%D7%AA/ (this returned 404)
I think that in the mod_rewrite (htaccess) I should make the URL transfered to wordpress as a non-case sensitive. How can I do that?
wordpress http-status-code-404 case-sensitive
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have been experiencing a problem yesterday. My site is in Hebrew language. MY site is built on Wordpress. The problem is related to escaped encoded posts URL only. IF the post URL has escaped encode in uppercase it works, if in lowercase, it returns 404. I want both to pass without a problem. I am hosting my site on godaddy shared hosting. Is there any option to let both uppercase and lowercase be accepted and show the same post?
For example:
http://domain.com/%d7%9e%d7%a6%d7%9c%d7%9e%d7%95%d7%aa/ (this is what my site have)
Google crawled it as:
http://domain.com/%D7%9E%D7%a6%D7%9C%D7%9E%D7%95%D7%AA/ (this returned 404)
I think that in the mod_rewrite (htaccess) I should make the URL transfered to wordpress as a non-case sensitive. How can I do that?
wordpress http-status-code-404 case-sensitive
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have been experiencing a problem yesterday. My site is in Hebrew language. MY site is built on Wordpress. The problem is related to escaped encoded posts URL only. IF the post URL has escaped encode in uppercase it works, if in lowercase, it returns 404. I want both to pass without a problem. I am hosting my site on godaddy shared hosting. Is there any option to let both uppercase and lowercase be accepted and show the same post?
For example:
http://domain.com/%d7%9e%d7%a6%d7%9c%d7%9e%d7%95%d7%aa/ (this is what my site have)
Google crawled it as:
http://domain.com/%D7%9E%D7%a6%D7%9C%D7%9E%D7%95%D7%AA/ (this returned 404)
I think that in the mod_rewrite (htaccess) I should make the URL transfered to wordpress as a non-case sensitive. How can I do that?
wordpress http-status-code-404 case-sensitive
I have been experiencing a problem yesterday. My site is in Hebrew language. MY site is built on Wordpress. The problem is related to escaped encoded posts URL only. IF the post URL has escaped encode in uppercase it works, if in lowercase, it returns 404. I want both to pass without a problem. I am hosting my site on godaddy shared hosting. Is there any option to let both uppercase and lowercase be accepted and show the same post?
For example:
http://domain.com/%d7%9e%d7%a6%d7%9c%d7%9e%d7%95%d7%aa/ (this is what my site have)
Google crawled it as:
http://domain.com/%D7%9E%D7%a6%D7%9C%D7%9E%D7%95%D7%AA/ (this returned 404)
I think that in the mod_rewrite (htaccess) I should make the URL transfered to wordpress as a non-case sensitive. How can I do that?
wordpress http-status-code-404 case-sensitive
wordpress http-status-code-404 case-sensitive
asked Sep 5 '11 at 23:51
Idan ShechterIdan Shechter
2511313
2511313
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Based on your example URL, you want URLs escaped in lowercase, If you have control over your server or virtual host, you can define a tolower map and use it in your rewrite rules as below:
RewriteEngine On
RewriteMap tolower int:tolower
RewriteCond %{REQUEST_URI} [a-z]
RewriteRule (.*) ${tolower:$1} [R=301,L]
You can also complete and use the following code in yout htaccess:
Options +FollowSymLinks
RewriteEngine on
# If the URI does not contain any uppercase letters, skip the next 28 rules.
RewriteRule ![A-Z] - [S=28]
#
# Else convert the first instance of "A" to "a", "B" to "b", etc.
RewriteRule ([^A]*)A(.*) $1a$2
RewriteRule ([^B]*)B(.*) $1b$2
# <22 more rules>
RewriteRule ([^Y]*)Y(.*) $1y$2
RewriteRule ([^Z]*)Z(.*) $1z$2
#
# If any more uppercase characters remain, restart mod_rewrite from the top
RewriteRule [A-Z] - [PT,N]
# Otherwise do an external 301 redirect to give the client the new URL.
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# Skip to here if no uppercase letters in client-requested URL.
# <some other rules>
If you don't have control over server , you can also use a wordpress redirection plugin to convert all incoming URLs to lowercase. ( s/[A-Z]/l&/g )
http://wordpress.org/extend/plugins/permalowercase301/
Another solution is to change your 404 error page to detect such links and redirecting them.
http://www.unfocus.com/2007/08/31/case-insensitive-permalinks-plugin-for-wordpress/
many thanks, but can you make the same example for lowercase to uppercase.
– Idan Shechter
Sep 7 '11 at 14:12
that would be easy. just swap A-Z with a-z and also A with a and go on with other letters, also tolower to toupper, e.g. RewriteRule ([^A]*)A(.*) $1a$2 becomes RewriteRule ([^a]*)a(.*) $1A$2 and RewriteRule ![A-Z] - [S=28] becomes RewriteRule ![a-z] - [S=28] and RewriteMap tolower int:tolower becomes RewriteMap toupper int:toupper
– Reza Hashemi
Sep 10 '11 at 15:35
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f308415%2fwordpress-escaped-encoded-hex-url-case-sensitive-problem%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Based on your example URL, you want URLs escaped in lowercase, If you have control over your server or virtual host, you can define a tolower map and use it in your rewrite rules as below:
RewriteEngine On
RewriteMap tolower int:tolower
RewriteCond %{REQUEST_URI} [a-z]
RewriteRule (.*) ${tolower:$1} [R=301,L]
You can also complete and use the following code in yout htaccess:
Options +FollowSymLinks
RewriteEngine on
# If the URI does not contain any uppercase letters, skip the next 28 rules.
RewriteRule ![A-Z] - [S=28]
#
# Else convert the first instance of "A" to "a", "B" to "b", etc.
RewriteRule ([^A]*)A(.*) $1a$2
RewriteRule ([^B]*)B(.*) $1b$2
# <22 more rules>
RewriteRule ([^Y]*)Y(.*) $1y$2
RewriteRule ([^Z]*)Z(.*) $1z$2
#
# If any more uppercase characters remain, restart mod_rewrite from the top
RewriteRule [A-Z] - [PT,N]
# Otherwise do an external 301 redirect to give the client the new URL.
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# Skip to here if no uppercase letters in client-requested URL.
# <some other rules>
If you don't have control over server , you can also use a wordpress redirection plugin to convert all incoming URLs to lowercase. ( s/[A-Z]/l&/g )
http://wordpress.org/extend/plugins/permalowercase301/
Another solution is to change your 404 error page to detect such links and redirecting them.
http://www.unfocus.com/2007/08/31/case-insensitive-permalinks-plugin-for-wordpress/
many thanks, but can you make the same example for lowercase to uppercase.
– Idan Shechter
Sep 7 '11 at 14:12
that would be easy. just swap A-Z with a-z and also A with a and go on with other letters, also tolower to toupper, e.g. RewriteRule ([^A]*)A(.*) $1a$2 becomes RewriteRule ([^a]*)a(.*) $1A$2 and RewriteRule ![A-Z] - [S=28] becomes RewriteRule ![a-z] - [S=28] and RewriteMap tolower int:tolower becomes RewriteMap toupper int:toupper
– Reza Hashemi
Sep 10 '11 at 15:35
add a comment |
Based on your example URL, you want URLs escaped in lowercase, If you have control over your server or virtual host, you can define a tolower map and use it in your rewrite rules as below:
RewriteEngine On
RewriteMap tolower int:tolower
RewriteCond %{REQUEST_URI} [a-z]
RewriteRule (.*) ${tolower:$1} [R=301,L]
You can also complete and use the following code in yout htaccess:
Options +FollowSymLinks
RewriteEngine on
# If the URI does not contain any uppercase letters, skip the next 28 rules.
RewriteRule ![A-Z] - [S=28]
#
# Else convert the first instance of "A" to "a", "B" to "b", etc.
RewriteRule ([^A]*)A(.*) $1a$2
RewriteRule ([^B]*)B(.*) $1b$2
# <22 more rules>
RewriteRule ([^Y]*)Y(.*) $1y$2
RewriteRule ([^Z]*)Z(.*) $1z$2
#
# If any more uppercase characters remain, restart mod_rewrite from the top
RewriteRule [A-Z] - [PT,N]
# Otherwise do an external 301 redirect to give the client the new URL.
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# Skip to here if no uppercase letters in client-requested URL.
# <some other rules>
If you don't have control over server , you can also use a wordpress redirection plugin to convert all incoming URLs to lowercase. ( s/[A-Z]/l&/g )
http://wordpress.org/extend/plugins/permalowercase301/
Another solution is to change your 404 error page to detect such links and redirecting them.
http://www.unfocus.com/2007/08/31/case-insensitive-permalinks-plugin-for-wordpress/
many thanks, but can you make the same example for lowercase to uppercase.
– Idan Shechter
Sep 7 '11 at 14:12
that would be easy. just swap A-Z with a-z and also A with a and go on with other letters, also tolower to toupper, e.g. RewriteRule ([^A]*)A(.*) $1a$2 becomes RewriteRule ([^a]*)a(.*) $1A$2 and RewriteRule ![A-Z] - [S=28] becomes RewriteRule ![a-z] - [S=28] and RewriteMap tolower int:tolower becomes RewriteMap toupper int:toupper
– Reza Hashemi
Sep 10 '11 at 15:35
add a comment |
Based on your example URL, you want URLs escaped in lowercase, If you have control over your server or virtual host, you can define a tolower map and use it in your rewrite rules as below:
RewriteEngine On
RewriteMap tolower int:tolower
RewriteCond %{REQUEST_URI} [a-z]
RewriteRule (.*) ${tolower:$1} [R=301,L]
You can also complete and use the following code in yout htaccess:
Options +FollowSymLinks
RewriteEngine on
# If the URI does not contain any uppercase letters, skip the next 28 rules.
RewriteRule ![A-Z] - [S=28]
#
# Else convert the first instance of "A" to "a", "B" to "b", etc.
RewriteRule ([^A]*)A(.*) $1a$2
RewriteRule ([^B]*)B(.*) $1b$2
# <22 more rules>
RewriteRule ([^Y]*)Y(.*) $1y$2
RewriteRule ([^Z]*)Z(.*) $1z$2
#
# If any more uppercase characters remain, restart mod_rewrite from the top
RewriteRule [A-Z] - [PT,N]
# Otherwise do an external 301 redirect to give the client the new URL.
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# Skip to here if no uppercase letters in client-requested URL.
# <some other rules>
If you don't have control over server , you can also use a wordpress redirection plugin to convert all incoming URLs to lowercase. ( s/[A-Z]/l&/g )
http://wordpress.org/extend/plugins/permalowercase301/
Another solution is to change your 404 error page to detect such links and redirecting them.
http://www.unfocus.com/2007/08/31/case-insensitive-permalinks-plugin-for-wordpress/
Based on your example URL, you want URLs escaped in lowercase, If you have control over your server or virtual host, you can define a tolower map and use it in your rewrite rules as below:
RewriteEngine On
RewriteMap tolower int:tolower
RewriteCond %{REQUEST_URI} [a-z]
RewriteRule (.*) ${tolower:$1} [R=301,L]
You can also complete and use the following code in yout htaccess:
Options +FollowSymLinks
RewriteEngine on
# If the URI does not contain any uppercase letters, skip the next 28 rules.
RewriteRule ![A-Z] - [S=28]
#
# Else convert the first instance of "A" to "a", "B" to "b", etc.
RewriteRule ([^A]*)A(.*) $1a$2
RewriteRule ([^B]*)B(.*) $1b$2
# <22 more rules>
RewriteRule ([^Y]*)Y(.*) $1y$2
RewriteRule ([^Z]*)Z(.*) $1z$2
#
# If any more uppercase characters remain, restart mod_rewrite from the top
RewriteRule [A-Z] - [PT,N]
# Otherwise do an external 301 redirect to give the client the new URL.
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#
# Skip to here if no uppercase letters in client-requested URL.
# <some other rules>
If you don't have control over server , you can also use a wordpress redirection plugin to convert all incoming URLs to lowercase. ( s/[A-Z]/l&/g )
http://wordpress.org/extend/plugins/permalowercase301/
Another solution is to change your 404 error page to detect such links and redirecting them.
http://www.unfocus.com/2007/08/31/case-insensitive-permalinks-plugin-for-wordpress/
answered Sep 6 '11 at 2:20
Reza HashemiReza Hashemi
24625
24625
many thanks, but can you make the same example for lowercase to uppercase.
– Idan Shechter
Sep 7 '11 at 14:12
that would be easy. just swap A-Z with a-z and also A with a and go on with other letters, also tolower to toupper, e.g. RewriteRule ([^A]*)A(.*) $1a$2 becomes RewriteRule ([^a]*)a(.*) $1A$2 and RewriteRule ![A-Z] - [S=28] becomes RewriteRule ![a-z] - [S=28] and RewriteMap tolower int:tolower becomes RewriteMap toupper int:toupper
– Reza Hashemi
Sep 10 '11 at 15:35
add a comment |
many thanks, but can you make the same example for lowercase to uppercase.
– Idan Shechter
Sep 7 '11 at 14:12
that would be easy. just swap A-Z with a-z and also A with a and go on with other letters, also tolower to toupper, e.g. RewriteRule ([^A]*)A(.*) $1a$2 becomes RewriteRule ([^a]*)a(.*) $1A$2 and RewriteRule ![A-Z] - [S=28] becomes RewriteRule ![a-z] - [S=28] and RewriteMap tolower int:tolower becomes RewriteMap toupper int:toupper
– Reza Hashemi
Sep 10 '11 at 15:35
many thanks, but can you make the same example for lowercase to uppercase.
– Idan Shechter
Sep 7 '11 at 14:12
many thanks, but can you make the same example for lowercase to uppercase.
– Idan Shechter
Sep 7 '11 at 14:12
that would be easy. just swap A-Z with a-z and also A with a and go on with other letters, also tolower to toupper, e.g. RewriteRule ([^A]*)A(.*) $1a$2 becomes RewriteRule ([^a]*)a(.*) $1A$2 and RewriteRule ![A-Z] - [S=28] becomes RewriteRule ![a-z] - [S=28] and RewriteMap tolower int:tolower becomes RewriteMap toupper int:toupper
– Reza Hashemi
Sep 10 '11 at 15:35
that would be easy. just swap A-Z with a-z and also A with a and go on with other letters, also tolower to toupper, e.g. RewriteRule ([^A]*)A(.*) $1a$2 becomes RewriteRule ([^a]*)a(.*) $1A$2 and RewriteRule ![A-Z] - [S=28] becomes RewriteRule ![a-z] - [S=28] and RewriteMap tolower int:tolower becomes RewriteMap toupper int:toupper
– Reza Hashemi
Sep 10 '11 at 15:35
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f308415%2fwordpress-escaped-encoded-hex-url-case-sensitive-problem%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown