0

When I go to http://sweatingthebigstuff.com/lending-club-loans-to-avoid/, I get a 404 page. But when I hit backspace twice, it deletes the / but not the d so there's a hidden space there. Once I delete it, it works.

How is there a hidden space in my URL and can I do something to detect and delete it in the .htaccess file? Otherwise every redirection I add has to be one of each.

EDIT:

Here's what I think may be relevant from the .htaccess file:

RewriteCond %{REQUEST_URI} !\.[^./]+$
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://sweatingthebigstuff.com/$1/ [R=301,L]

RedirectMatch 301 ^/[0-9]{4}/[0-9]{2}/[0-9]{2}/(.+)$ /$1

It actually looks like this: http://sweatingthebigstuff.com%E2%80%8B/lending-club-loans-to-avoid%E2%80%8B/

nhahtdh
  • 55,989
  • 15
  • 126
  • 162
Daniel
  • 6,758
  • 6
  • 31
  • 29

1 Answers1

0

Try changing

RewriteCond %{REQUEST_URI} !\.[^./]+$
RewriteCond %{REQUEST_URI} !(.*)/$

to

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Alex W
  • 37,233
  • 13
  • 109
  • 109