I FINALLY figured out how to get mod_rewrite to work.
Its all working fine and dandy, I just have 2 problems
1)How do you grab the url /directory? I have to specify my exact domain and directory in order to get things to work. That would be fine except for the fact that I am planning on having the app im creating be on multiple websites by different users.
2)Im having trouble redirecting and index.php?x=y url to the /x/y kind of url that I want it to be. It works fine if you type in /x/y, but if you type in index.php?x=y it wont redirect.
Heres my code in the .htaccess file
Code:
RewriteEngine On
RewriteRule ^channels/([0-9]+\.[0-9]+)$ http://helmgames.com/test/index.php?channel=$1
RewriteRule ^threads/([0-9]+)$ http://helmgames.com/test/index.php?topic=$1
//my redirect rules are below
RewriteRule ^index\.php?channel=([0-9]+\.[0-9]+)$ channels/$1 [R]
RewriteRule ^index\.php?topic=([0-9]+)$ threads/$1 [R]
|