View Single Post
Old 11-13-2012, 09:04 AM   PM User | #3
patrmich
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
patrmich is an unknown quantity at this point
Hi,

Thank you poyzn for your reply.

I tried to add the 3 given lines to my htaccess file :
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.html$ /index.html?target=$1 [L,R=301]


Then, I tried to open the here below url :
http://www.mysite.com/index.html?target=page_xxx.html


a- I got an error message in Google Chrome (in private navigation) :
"cette page présente une boucle de redirection" (this page has a redirect loop)
or
b- I got an error message in Firefox :
"La page n'est pas redirigée correctement" (The page is not properly redirected)

The displayed url in the browser bar was :
http://www.mysite.com/index.html?target=index

As a piece of information, I add that my new site root is :
http://www.mysite.com/index.php (or http://www.mysite.com)
and not
http://www.mysite.com/index.html

I thank you in advance if you can try to help me once again.

Kind Regards,

Patrick
patrmich is offline   Reply With Quote