Assistance with mod_rewrite


#1

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


#3

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.


#4

awesome!
That did the trick.
Thanks!


#5

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