Rewrite Multiple directories

CLOSED

Rewrite Multiple directories

Postby cwsterling » Thu Feb 11, 2010 7:16 am

I need some help rewriting some urls that can contain different directories.

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.
cwsterling
 
Posts: 3
Joined: Wed Feb 10, 2010 7:42 pm

Re: Rewrite Multiple directories

Postby cwsterling » Wed Feb 17, 2010 8:10 pm

bump?
cwsterling
 
Posts: 3
Joined: Wed Feb 10, 2010 7:42 pm


Return to New Threads/Problems

Who is online

Users browsing this forum: No registered users and 3 guests

cron