Assistance with mod_rewrite


I have everything working fine I would just like to add a folder to the path in the ssl rewrite rule. Which is

RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

so the end result would be

I had a rewrite rule working before installing SSL and I have been unable to get both rules working

Thanks in advance


Hi @sascotta

%{SERVER_NAME} is %{REQUEST_URI} is all that follows.

So add your folder between these two.


But if this doesn’t work, you should show your complete definitions.


That did the trick.


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