k07n Posted July 1, 2014 Share Posted July 1, 2014 Hi! Is where any way to throw 404 in urls like this: processwire.com/aboutпривет/sites/ In fact, it is just ignore Russian letters and render content without them. SEO crying =) Link to comment Share on other sites More sharing options...
ryan Posted July 1, 2014 Share Posted July 1, 2014 If you want to 404 that situation, add this to your .htaccess file, somewhere after "RewriteEngine On": # ----------------------------------------------------------------------------------------------- # Send URLs with non name-format characters to 404 page # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_URI} "[^-_.a-zA-Z0-9/~]" RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?it=/http404/ [L,QSA] 3 Link to comment Share on other sites More sharing options...
k07n Posted July 2, 2014 Author Share Posted July 2, 2014 share my nginx config part for this: server { # all your stuff here error_page 404 /index.php?id=/http404/; # bla-bla-bla config # add this before location / {...} location ~ [^-_.a-zA-Z0-9/~] { try_files $uri $uri/ =404; } } working fine for me 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now