URL Rewrite
Posted: Sat Dec 26, 2015 2:24 pm
So I am trying to teach myself and it's going pritty well. besides the fact that I want to rewrite my url:
http://www.jeplabyggochtradgard.com/webroot/Index.php
Where webroot is a fixed folder but after that there may be more folders/files...
I'm not a wizard when it comes to regex (I try I really do) but I do my best.
Now I asked my host and they have rewrite on so I can do this if I do it correctly...
I added .htaccess file to the root of my domain.
Now I'm asking for help to figure out what I need todo with the rewriteRule, base and all those :/
I've been looking over pages such as:
https://24ways.org/2013/url-rewriting-for-the-fearful/
http://stackoverflow.com/questions/1047 ... -from-urls
Amongst a few...
But I still don't get the syntaxing of it and what the diffrent, "RewriteRule:, RewriteBase: ..." does.
Thanks in Advance,
Thomas
http://www.jeplabyggochtradgard.com/webroot/Index.php
Where webroot is a fixed folder but after that there may be more folders/files...
I'm not a wizard when it comes to regex (I try I really do) but I do my best.
Now I asked my host and they have rewrite on so I can do this if I do it correctly...
I added .htaccess file to the root of my domain.
Now I'm asking for help to figure out what I need todo with the rewriteRule, base and all those :/
I've been looking over pages such as:
https://24ways.org/2013/url-rewriting-for-the-fearful/
http://stackoverflow.com/questions/1047 ... -from-urls
Amongst a few...
But I still don't get the syntaxing of it and what the diffrent, "RewriteRule:, RewriteBase: ..." does.
Thanks in Advance,
Thomas