The following code is in my .htaccess, and currently works - the first two lines are for if a user goes to example.com/Pancake, example.com/Pan-cake, example.com/pan-cake, or example.com/pancake, it takes them all to example.com/Pan-cake/index.php.
The last line is for if a user goes to example.com/pancake/whatever.php, it redirects it to example.com/Pan-cake/whatever.php.
The problem is if I try to add the line
RewriteRule ^Pan\\-cake(.*) http://www.example.com/Pan-cake$1 [NC,L]
I get an error “Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”
What line should I write so that example.com/pan-cake/whatever.php redirects to example.com/Pan-cake/whatever.php?
RewriteRule ^Pan\\-cake$ http://www.example.com/Pan-cake/index.php?ref=stype [NC,L]
RewriteRule ^Pancake$ http://www.example.com/Pan-cake/index.php?ref=stype-nd [NC,L]
RewriteRule ^Pancake(.*) http://www.example.com/Pan-cake$1 [NC,L]