Remove folder from URL with htaccess?

I am using this code to redirect only homepage to sign-in page:

RewriteRule ^$ http://localhost/amigote/sign-in [R=301,L]

How can I remove the sign-in from URL but the thing is I would like it only to affect this URL cause I don’t want it to start stripping sign-in from all urls


IMHO, that’s a strange request as you don’t say what you want to redirect it to (remove folder … from the visible URL but serve that request?).

Anyway, that seems to be what I’ve labeled a “loopy redirection” so that’s covered in my tutorial at in one of the many examples.



This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.