htaccess and unicode (the letter 'נ')?











up vote
0
down vote

favorite












I have an htaccess file which contains some rewriting rules, for friendly urls.
everything is working fine, except if I use the letter 'נ' in hebrew.



Line (1) is working, line (2) isn't:



RewriteRule ^א$ file.ext
RewriteRule ^נ$ file.ext


I simply get a 500 error.



(I use wamp + win xp.pro)










share|improve this question
























  • Do you get the 500 error when you put the letter into .htaccess or into your browser?
    – Roman Starkov
    Jan 9 '11 at 13:19












  • it's in the htaccess file
    – yossi
    Jan 9 '11 at 14:24















up vote
0
down vote

favorite












I have an htaccess file which contains some rewriting rules, for friendly urls.
everything is working fine, except if I use the letter 'נ' in hebrew.



Line (1) is working, line (2) isn't:



RewriteRule ^א$ file.ext
RewriteRule ^נ$ file.ext


I simply get a 500 error.



(I use wamp + win xp.pro)










share|improve this question
























  • Do you get the 500 error when you put the letter into .htaccess or into your browser?
    – Roman Starkov
    Jan 9 '11 at 13:19












  • it's in the htaccess file
    – yossi
    Jan 9 '11 at 14:24













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have an htaccess file which contains some rewriting rules, for friendly urls.
everything is working fine, except if I use the letter 'נ' in hebrew.



Line (1) is working, line (2) isn't:



RewriteRule ^א$ file.ext
RewriteRule ^נ$ file.ext


I simply get a 500 error.



(I use wamp + win xp.pro)










share|improve this question















I have an htaccess file which contains some rewriting rules, for friendly urls.
everything is working fine, except if I use the letter 'נ' in hebrew.



Line (1) is working, line (2) isn't:



RewriteRule ^א$ file.ext
RewriteRule ^נ$ file.ext


I simply get a 500 error.



(I use wamp + win xp.pro)







.htaccess unicode wamp hebrew






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 3:18









Cœur

17k9102140




17k9102140










asked Jan 9 '11 at 13:08









yossi

1,59233351




1,59233351












  • Do you get the 500 error when you put the letter into .htaccess or into your browser?
    – Roman Starkov
    Jan 9 '11 at 13:19












  • it's in the htaccess file
    – yossi
    Jan 9 '11 at 14:24


















  • Do you get the 500 error when you put the letter into .htaccess or into your browser?
    – Roman Starkov
    Jan 9 '11 at 13:19












  • it's in the htaccess file
    – yossi
    Jan 9 '11 at 14:24
















Do you get the 500 error when you put the letter into .htaccess or into your browser?
– Roman Starkov
Jan 9 '11 at 13:19






Do you get the 500 error when you put the letter into .htaccess or into your browser?
– Roman Starkov
Jan 9 '11 at 13:19














it's in the htaccess file
– yossi
Jan 9 '11 at 14:24




it's in the htaccess file
– yossi
Jan 9 '11 at 14:24












1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










A browser like Firefox would encode such characters, usually using UTF-8. So the web server would receive "%D7%A0" in the URL instead of this character.



Try putting that into your .htaccess rule instead of the character itself:



RewriteRule ^%D7%90$ file.ext
RewriteRule ^%D7%A0$ file.ext


It could also be that your web application doesn't know how to handle UTF-8 encoded URLs and so gives you a 500 error message.






share|improve this answer























  • and other browsers will "understand" it?
    – yossi
    Jan 9 '11 at 14:25










  • @yossi it depends. Up until very recently there was simply no way at all to have such letters in the URL. A couple of years ago (maybe even less) Firefox started to show such URLs in "decoded", human-readable form. You can test if your browser supports this by going to the Hebrew wikipedia and looking at the URL bar, to see if it has hebrew characters or stuff like %D7%A7%D7.
    – Roman Starkov
    Jan 9 '11 at 14:46












  • @romkyns: Don't look at the URL bar, look at the reality. The URL bar "beautifies" the URL. To get the real URL, go to the URL bar, select the whole URL and copy it into the clipboard. Then, paste it whereever you want, for example in a notepad window.
    – Roland Illig
    Jan 9 '11 at 17:15










  • @Roland I know, not sure what your point is though.
    – Roman Starkov
    Jan 9 '11 at 17:36






  • 2




    My point is that URLs still only consist of ASCII characters, no matter what Firefox displays in the "URL bar". (That comment didn't aim at you personally but at those readers who might think that URLs may contain arbitrary characters by now. I felt your comment suggested that.)
    – Roland Illig
    Jan 9 '11 at 22:10











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f4639245%2fhtaccess-and-unicode-the-letter-%25d7%25a0%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








up vote
3
down vote



accepted










A browser like Firefox would encode such characters, usually using UTF-8. So the web server would receive "%D7%A0" in the URL instead of this character.



Try putting that into your .htaccess rule instead of the character itself:



RewriteRule ^%D7%90$ file.ext
RewriteRule ^%D7%A0$ file.ext


It could also be that your web application doesn't know how to handle UTF-8 encoded URLs and so gives you a 500 error message.






share|improve this answer























  • and other browsers will "understand" it?
    – yossi
    Jan 9 '11 at 14:25










  • @yossi it depends. Up until very recently there was simply no way at all to have such letters in the URL. A couple of years ago (maybe even less) Firefox started to show such URLs in "decoded", human-readable form. You can test if your browser supports this by going to the Hebrew wikipedia and looking at the URL bar, to see if it has hebrew characters or stuff like %D7%A7%D7.
    – Roman Starkov
    Jan 9 '11 at 14:46












  • @romkyns: Don't look at the URL bar, look at the reality. The URL bar "beautifies" the URL. To get the real URL, go to the URL bar, select the whole URL and copy it into the clipboard. Then, paste it whereever you want, for example in a notepad window.
    – Roland Illig
    Jan 9 '11 at 17:15










  • @Roland I know, not sure what your point is though.
    – Roman Starkov
    Jan 9 '11 at 17:36






  • 2




    My point is that URLs still only consist of ASCII characters, no matter what Firefox displays in the "URL bar". (That comment didn't aim at you personally but at those readers who might think that URLs may contain arbitrary characters by now. I felt your comment suggested that.)
    – Roland Illig
    Jan 9 '11 at 22:10















up vote
3
down vote



accepted










A browser like Firefox would encode such characters, usually using UTF-8. So the web server would receive "%D7%A0" in the URL instead of this character.



Try putting that into your .htaccess rule instead of the character itself:



RewriteRule ^%D7%90$ file.ext
RewriteRule ^%D7%A0$ file.ext


It could also be that your web application doesn't know how to handle UTF-8 encoded URLs and so gives you a 500 error message.






share|improve this answer























  • and other browsers will "understand" it?
    – yossi
    Jan 9 '11 at 14:25










  • @yossi it depends. Up until very recently there was simply no way at all to have such letters in the URL. A couple of years ago (maybe even less) Firefox started to show such URLs in "decoded", human-readable form. You can test if your browser supports this by going to the Hebrew wikipedia and looking at the URL bar, to see if it has hebrew characters or stuff like %D7%A7%D7.
    – Roman Starkov
    Jan 9 '11 at 14:46












  • @romkyns: Don't look at the URL bar, look at the reality. The URL bar "beautifies" the URL. To get the real URL, go to the URL bar, select the whole URL and copy it into the clipboard. Then, paste it whereever you want, for example in a notepad window.
    – Roland Illig
    Jan 9 '11 at 17:15










  • @Roland I know, not sure what your point is though.
    – Roman Starkov
    Jan 9 '11 at 17:36






  • 2




    My point is that URLs still only consist of ASCII characters, no matter what Firefox displays in the "URL bar". (That comment didn't aim at you personally but at those readers who might think that URLs may contain arbitrary characters by now. I felt your comment suggested that.)
    – Roland Illig
    Jan 9 '11 at 22:10













up vote
3
down vote



accepted







up vote
3
down vote



accepted






A browser like Firefox would encode such characters, usually using UTF-8. So the web server would receive "%D7%A0" in the URL instead of this character.



Try putting that into your .htaccess rule instead of the character itself:



RewriteRule ^%D7%90$ file.ext
RewriteRule ^%D7%A0$ file.ext


It could also be that your web application doesn't know how to handle UTF-8 encoded URLs and so gives you a 500 error message.






share|improve this answer














A browser like Firefox would encode such characters, usually using UTF-8. So the web server would receive "%D7%A0" in the URL instead of this character.



Try putting that into your .htaccess rule instead of the character itself:



RewriteRule ^%D7%90$ file.ext
RewriteRule ^%D7%A0$ file.ext


It could also be that your web application doesn't know how to handle UTF-8 encoded URLs and so gives you a 500 error message.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 10 '11 at 10:25

























answered Jan 9 '11 at 13:19









Roman Starkov

34.2k24186270




34.2k24186270












  • and other browsers will "understand" it?
    – yossi
    Jan 9 '11 at 14:25










  • @yossi it depends. Up until very recently there was simply no way at all to have such letters in the URL. A couple of years ago (maybe even less) Firefox started to show such URLs in "decoded", human-readable form. You can test if your browser supports this by going to the Hebrew wikipedia and looking at the URL bar, to see if it has hebrew characters or stuff like %D7%A7%D7.
    – Roman Starkov
    Jan 9 '11 at 14:46












  • @romkyns: Don't look at the URL bar, look at the reality. The URL bar "beautifies" the URL. To get the real URL, go to the URL bar, select the whole URL and copy it into the clipboard. Then, paste it whereever you want, for example in a notepad window.
    – Roland Illig
    Jan 9 '11 at 17:15










  • @Roland I know, not sure what your point is though.
    – Roman Starkov
    Jan 9 '11 at 17:36






  • 2




    My point is that URLs still only consist of ASCII characters, no matter what Firefox displays in the "URL bar". (That comment didn't aim at you personally but at those readers who might think that URLs may contain arbitrary characters by now. I felt your comment suggested that.)
    – Roland Illig
    Jan 9 '11 at 22:10


















  • and other browsers will "understand" it?
    – yossi
    Jan 9 '11 at 14:25










  • @yossi it depends. Up until very recently there was simply no way at all to have such letters in the URL. A couple of years ago (maybe even less) Firefox started to show such URLs in "decoded", human-readable form. You can test if your browser supports this by going to the Hebrew wikipedia and looking at the URL bar, to see if it has hebrew characters or stuff like %D7%A7%D7.
    – Roman Starkov
    Jan 9 '11 at 14:46












  • @romkyns: Don't look at the URL bar, look at the reality. The URL bar "beautifies" the URL. To get the real URL, go to the URL bar, select the whole URL and copy it into the clipboard. Then, paste it whereever you want, for example in a notepad window.
    – Roland Illig
    Jan 9 '11 at 17:15










  • @Roland I know, not sure what your point is though.
    – Roman Starkov
    Jan 9 '11 at 17:36






  • 2




    My point is that URLs still only consist of ASCII characters, no matter what Firefox displays in the "URL bar". (That comment didn't aim at you personally but at those readers who might think that URLs may contain arbitrary characters by now. I felt your comment suggested that.)
    – Roland Illig
    Jan 9 '11 at 22:10
















and other browsers will "understand" it?
– yossi
Jan 9 '11 at 14:25




and other browsers will "understand" it?
– yossi
Jan 9 '11 at 14:25












@yossi it depends. Up until very recently there was simply no way at all to have such letters in the URL. A couple of years ago (maybe even less) Firefox started to show such URLs in "decoded", human-readable form. You can test if your browser supports this by going to the Hebrew wikipedia and looking at the URL bar, to see if it has hebrew characters or stuff like %D7%A7%D7.
– Roman Starkov
Jan 9 '11 at 14:46






@yossi it depends. Up until very recently there was simply no way at all to have such letters in the URL. A couple of years ago (maybe even less) Firefox started to show such URLs in "decoded", human-readable form. You can test if your browser supports this by going to the Hebrew wikipedia and looking at the URL bar, to see if it has hebrew characters or stuff like %D7%A7%D7.
– Roman Starkov
Jan 9 '11 at 14:46














@romkyns: Don't look at the URL bar, look at the reality. The URL bar "beautifies" the URL. To get the real URL, go to the URL bar, select the whole URL and copy it into the clipboard. Then, paste it whereever you want, for example in a notepad window.
– Roland Illig
Jan 9 '11 at 17:15




@romkyns: Don't look at the URL bar, look at the reality. The URL bar "beautifies" the URL. To get the real URL, go to the URL bar, select the whole URL and copy it into the clipboard. Then, paste it whereever you want, for example in a notepad window.
– Roland Illig
Jan 9 '11 at 17:15












@Roland I know, not sure what your point is though.
– Roman Starkov
Jan 9 '11 at 17:36




@Roland I know, not sure what your point is though.
– Roman Starkov
Jan 9 '11 at 17:36




2




2




My point is that URLs still only consist of ASCII characters, no matter what Firefox displays in the "URL bar". (That comment didn't aim at you personally but at those readers who might think that URLs may contain arbitrary characters by now. I felt your comment suggested that.)
– Roland Illig
Jan 9 '11 at 22:10




My point is that URLs still only consist of ASCII characters, no matter what Firefox displays in the "URL bar". (That comment didn't aim at you personally but at those readers who might think that URLs may contain arbitrary characters by now. I felt your comment suggested that.)
– Roland Illig
Jan 9 '11 at 22:10


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f4639245%2fhtaccess-and-unicode-the-letter-%25d7%25a0%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python