htaccess help!

Discussion in 'Programming' started by Dave86, Mar 2, 2011.

  1. #1
    Hi I am trying to rewrite 2 url's

    recentupdates.php
    newmembers.php

    I use below and add it to the htaccess, but it dont work the 2 url's are still the same.

    RewriteRule ^explore$ recentupdates.php
    RewriteRule ^community$ newmembers.php

    -------------------------------------------

    htaccess:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^confirmemail/(.*) confirmemail.php?code=$1
    RewriteRule ^resetpassword/(.*) resetpassword.php?code=$1
    RewriteRule ^resendconfirmation/(.*) resendconfirmation.php?userid=$1
    RewriteRule ^widget$ widget.php
    RewriteRule ^profile/(.*)/(.*) redirect.php?id=$1&username=$2
    RewriteRule ^([^/.]+)(\/)?$ profile.php?uname=$1


    </IfModule>
     
    Dave86, Mar 2, 2011 IP