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 sub.domain.com/folder

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 sub.domain.com. %{REQUEST_URI} is all that follows.

So add your folder between these two.

%{SERVER_NAME}/yourfolder%{REQUEST_URI}

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

awesome!
That did the trick.
Thanks!

1 Like

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