Basically I will have a total of 3 main urls on my site.
smallr.tk/s/stuff
smallr.tk/p/stuff
smallr.tk/stuff
I have the following in place, but its not working and it just redirects me to the main site index page.
- Code: Select all
RewriteRule ^/s/(.+)$ /s/index.php?link=$1 [NC,L]
RewriteRule ^/p/(.+)$ /p/index.php?link=$1 [NC,L]
RewriteRule ^(.+)$ index.php?link=$1 [NC,L]
Any suggestions? I want to rewrite them all to index.php but I need them to be under the given directory.