title: Htaccess Unicode URL Issues
body: <p>This is my htaccess file:</p>
  
  <pre><code>IndexIgnore *
  
  ServerSignature Off
  
  AddDefaultCharset UTF-8
  
  LimitRequestBody 10240000
  
  IndexIgnore *.wmv *.mp4 *.avi *.pdf
  
  AddType 'text/html; charset=UTF-8' html
  
  Options All -Indexes +MultiViews +FollowSymLinks
  
  ErrorDocument 400 /Pocnimo/400/
  ErrorDocument 403 /Pocnimo/403/
  ErrorDocument 404 /Pocnimo/404/
  
  RewriteEngine On
  RewriteCond %{HTTP_REFERER} !^$
  RewriteCond %{HTTP_REFERER} !^http://(www\.)?a-site.com/.*$ [NC]
  RewriteCond %{HTTP_REFERER} !^https://(www\.)?a-site.com/.*$ [NC]
  RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
  RewriteRule . %1/%2 [R=301,L]
  
  RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?a-site.com [NC]
  RewriteRule \.(css)$ - [NC,F,L]
  
  # RewriteCond %{REQUEST_FILENAME} !-d
  # RewriteCond %{REQUEST_FILENAME}\.php -f
  # RewriteRule ^(.*)$ $1.php [L]
  
  RewriteCond %{HTTP_HOST} ^a-site\.com
  RewriteRule ^(.*)$ http://www.a-site.com/$1 [R=permanent,L]
  
  ExpiresActive On
  ExpiresByType image/gif A2592000
  ExpiresByType image/jpg A2592000
  ExpiresByType image/png A2592000
  
  &lt;FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$"&gt;
  Order Allow,Deny
  Deny from all
  &lt;/FilesMatch&gt;
  
  &lt;FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"&gt;
  ExpiresActive Off
  &lt;/FilesMatch&gt;
  
  &lt;FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"&gt;
  Header unset Cache-Control
  &lt;/FilesMatch&gt;
  
  &lt;IfModule mod_expires.c&gt;
  ExpiresActive On
  ExpiresByType image/jpg "access 1 month"
  ExpiresByType image/jpeg "access 1 month"
  ExpiresByType image/gif "access 1 month"
  ExpiresByType image/png "access 1 month"
  ExpiresByType text/css "access 1 month"
  ExpiresByType application/pdf "access 1 month"
  ExpiresByType text/javascript "access plus 1 month"
  ExpiresByType text/x-javascript "access plus 1 month"
  ExpiresByType application/javascript "access plus 1 month"  
  ExpiresByType application/x-javascript "access plus 1 month"
  ExpiresByType application/x-shockwave-flash "access 1 month"
  ExpiresByType image/x-icon "access 1 year"
  ExpiresDefault "access 2 days"
  &lt;/IfModule&gt;
  
  &lt;ifmodule mod_rewrite.c&gt;
  RewriteCond %{REQUEST_URI} !^/Icon\.ico [NC]
  RewriteCond %{REQUEST_URI} Icon\.ico    [NC]
  RewriteRule (.*) http://www.a-site.com/Icon.ico [R=301,L]
  &lt;/ifmodule&gt;
  
  &lt;ifModule mod_headers.c&gt;
  Header set Connection keep-alive
  &lt;/ifModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
  RewriteCond %{REQUEST_URI} /+[^\.]+$
  RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_deflate.c&gt;
  &lt;FilesMatch "\\.(js|css|html|htm|php|xml)$"&gt;
  SetOutputFilter DEFLATE
  &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
  
  &lt;Files .htaccess&gt;
  order allow,deny
  deny from all
  &lt;/Files&gt;
  
  &lt;IfModule mod_php4.c&gt;
  php_value zlib.output_compression 16386
  &lt;/IfModule&gt;
  
  &lt;ifModule mod_php5.c&gt;
  php_value zlib.output_compression 16386
  &lt;/ifModule&gt;
  
  &lt;IfModule mod_speling.c&gt;
  CheckSpelling Off
  CheckCaseOnly Off
  &lt;/IfModule&gt;
  
  &lt;FilesMatch "\.(htm|html|php)$"&gt;
  &lt;IfModule mod_headers.c&gt;
  BrowserMatch MSIE ie
  Header set X-UA-Compatible "IE=Edge, Chrome=1" env=ie
  &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  
  &lt;FilesMatch "\.(ttf|otf|eot|woff)$"&gt;
  &lt;IfModule mod_headers.c&gt;
  Header set Access-Control-Allow-Origin "http://www.a-site.com"
  &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteCond %{HTTP_REFERER} !^$
  RewriteCond %{HTTP_REFERER} !^http://(www\.)?a-site\.com/.*$ [NC]
  RewriteRule .*\.(gif|jpg)$ http://www.a-site.com/Ulaz?otvori=Zabrana [R,NC,L]
  &lt;/ifModule&gt;
  </code></pre>
  
  <p>I wanted the URL to be as <code>www.a-site.com/Š?term=Šaram</code></p>
  
  <p>But instead I get: <code>www.a-site.com/Š/?term=Šaram</code> and therefore page can not be found although the paths are good. Any solution to this? The url with the file that points to the "www.a-site.com/Š?term=Šaram" is "/Š?term=Šaram"... But does not help.</p>