k07n Posted July 1, 2014 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 =)
ryan Posted July 1, 2014 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
k07n Posted July 2, 2014 Author 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
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