treehouse : what would you like to learn today?
Web Design Web Development iOS Development
  • hi all,

    Was wondering if there was anyone out there who fully understands htaccess mod_rewrite? I've been playing with it for a while but its just beating me.

    I have my rewrite working fine but I want it to not change the path if the user calls a specific folder (ie /admin/).

    my file currently reads:

    Options +FollowSymlinks
    RewriteEngine on


    RewriteRule ^([a-zA-Z0-9]+)/([a-z\-]+)$ index.php?type=$1&clean=$2
    RewriteRule ^([a-zA-Z0-9]+)/$ index.php?type=$1
    RewriteRule ^([a-zA-Z0-9]+)$ index.php?type=$1


    So if /admin/ is called it will simple go there.

    Any help would be greatly appreciated!!!