Forum Moderators: phranque

Message Too Old, No Replies

Oops - it looks like you entered an invalid URL. Please check your syn

Only for sites on my server

         

JackR

1:44 pm on Nov 1, 2011 (gmt 0)

10+ Year Member



Oops - it looks like you entered an invalid URL. Please check your syntax and try again.


I've checked response codes 100 times and double checked everything I can think of, but if I enter one of my URLs into certain online tools, I'm receiving the error above. The same tools work fine for ANY other URL.

There are no redirects in place in the control panel / at the server level.

This is my current .htaccess:


Options +FollowSymLinks
RewriteEngine On

# HTTP/1.1 301 Moved Permanently
RewriteRule (blonde|blonde-escorts|blonde-escort-london|london-escorts/blonde)\.html? http://www.example.com/blonde-london-escorts.html [R=301,L]
RewriteRule (brunette|brunette-escort-london|london-escorts/brunette)\.html? http://www.example.com/brunette-london-escorts.html [R=301,L]
RewriteRule (busty|busty-escorts|busty-escort-london|london-escorts/busty)\.html? http://www.example.com/busty-london-escorts.html [R=301,L]
RewriteRule (latina|latin-escort-london|brazilian-escort-london|london-escorts/latina)\.html? http://www.example.com/latina-london-escorts.html [R=301,L]
RewriteRule ^reviews\.html? http://www.example.com/feedback.html [R=301,L]

# HTTP/1.1 410 Gone
RewriteRule ^links/(independent-escorts-in-london|escort-agencies-in-london|linking|fetish|index|escort-web-site-design|escort-agencies-in-the-usa|erotic-stories|linkingThanks|London-Escort-Agencies)\.html? - [G]
RewriteRule ^london-escorts/(aged-18-21|aged-22-plus|escorts-az)\.html? - [G]
RewriteRule ^(London-Escorts-Portfolio|London_escorts_portfolio|Description|TITLE|banners|london-escort-in-chelsea-milla|london-escort-in-paddintgon-angelina|london-escort-in-bayswat..|london-esco..|&usg=ALkJrhgz6MRDcFkp-kcCoKgNS9ERG-CLtQ|$myEmail|London_escorts_portfolio.htm?a=g|zoe.html?iframe=true&width=80%&height=80%)\.html? - [G]

# Return 410-Gone for myEmail URLs
RewriteRule myEmail - [G]

# Redirect index.htm/.html to '/'
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?(\?[^\ ]+)?\ HTTP/ [NC]
RewriteRule ^(([^/]+/)*)index\.html?$ http://www.example.com/$1? [R=301,L]

# Redirect to remove multiple slashes within URL-path
RewriteRule ^(([^/]+/)*)/+(.*)$ http://www.example.com/$1$3 [R=301,L]

# Redirect to remove multiple slashes before URL-path
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ //+([^\ ]*)
RewriteRule .* http://www.example.com/%1 [R=301,L]

# 301 redirect requests to files with no extension to same with appended .html extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\..+$
RewriteRule ^(.*)$ /$1.html [R=301,L]

# If not already redirected above, redirect non-canonical domain requests to the canonical domain
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]




I can't see anything in the above that would lead to the error.

lucy24

11:24 pm on Nov 1, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, thank you, I think we've got all your directory names memorized by now ;)

Are you using anything like Live Headers that will show you all redirects in action? Does the problem happen with all URLs in this domain, or only some of them?

Are the tools referring to "real" addresses or to prettified ones that will be rewritten behind the scenes? That is, something like "www.example.com/name1/name2" may be what the user sees, but it's not a valid name. So you would expect it to draw an error message if the tool doesn't know it's camouflage for "www.example.com/name1/name2/index.html" or "www.example.com/name1/name2.html" or similar.

JackR

12:43 am on Nov 2, 2011 (gmt 0)

10+ Year Member



Former directory names Lucy :)

I've checked every single entry in the .htaccess manually using Live Headers and a popular online tool.

I get .200 for the main pages, .410 for everything that doesn't exist, etc. Everything 'checks out' as it were.

The tools show everything as it should be according to the rules in the .htaccess, but I'm still concerned that a week after moving host and updating the .htaccess, the homepage is still missing.

lucy24

1:21 am on Nov 2, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Oops again. Isn't the homepage question a different thread? :)