Grow your CSS skills. Land your dream job.

htaccess

  • # September 16, 2008 at 2:36 pm

    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:

    Code:
    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!!!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".