Hi everybody, In my web site I have several index pages in different languages in the following format http://www.mysite.com/lang_index.html Two days ago I noticed increased, many times. Google bot activity on my site and when I checked my log file I found that all pages crawled were wrong web addresses: to the above index were added existing files from my site like /folder1/folder2/file.html So, the strings looked like http://www.mysite.com/lang_index.html/folder1/folder2/file.html And surprisingly all they returned code "200". My question is: is there any way to rewrite such requests to the first ".html" found in the string. Your help is greatly appreciated.
If you want to rewrite "/$var.html" into "/$var.html/folder1/folder2/file.html" then try using the mod_rewrite of Apache HTTP Server, and try to use these configuration directives in your .htaccess file: #once per htaccess Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteRule ^([^/]+).html$ http://www.mysite.com/$1.html/folder1/folder2/file.html [L] Code (markup):