/~ htacces rewrite

Discussion in 'Apache' started by funzie, Mar 18, 2009.

  1. #1
    I have two environments my code works on development and production. On my development server my site is http://www.test.dev/~funzie/folder/, this same folder on the production site would be http://www.test.com/folder/. Since when I update the production server it takes the files of the development server and copies them over, therefore I need to keep the same .htaccess on both server otherwise I run into problems with different files.

    I am using the following rule to redirect in the development server
    Options +FollowSymLinks
    RewriteEngine on
    RewriteBase /~funzie/folder
    RewriteRule index-topicid-(.*)\.htm$ index.php?topicid=$1 [L]
    
    Code (markup):
    However the same code doesn't work on the production server. I was trying a RewriteCond but that wasn't working for me. I am looking for some help on this.

    Thanks
     
    funzie, Mar 18, 2009 IP