Deanznet Posted November 4, 2010 Share Posted November 4, 2010 Okay so i got this in my .htaccess <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^download/([\d]*)\-.*$ download.php?id=$1 [nc] order allow,deny allow from all </IfModule> so if i go to http://www.mysite.com/download/2998-Background_cell.png it should rewrite like http://www.mysite.com/download.php?id=2998 Works fine on my dedi host why not on shared! Quote Link to comment https://forums.phpfreaks.com/topic/217786-htaccess-help-php/ Share on other sites More sharing options...
Deanznet Posted November 4, 2010 Author Share Posted November 4, 2010 htaccess file dose work with other stuff! Whats the deal! Quote Link to comment https://forums.phpfreaks.com/topic/217786-htaccess-help-php/#findComment-1130463 Share on other sites More sharing options...
BlueSkyIS Posted November 5, 2010 Share Posted November 5, 2010 is mod_rewrite installed and enabled? if not, nothing will be rewritten: <IfModule mod_rewrite.c> # then mod_rewrite.c is installed and active, otherwise no mod_rewrite you might try removing the IfModule: Options +FollowSymlinks order allow,deny allow from all RewriteEngine on RewriteBase / RewriteRule ^download/([\d]*)\-.*$ download.php?id=$1 [nc] Quote Link to comment https://forums.phpfreaks.com/topic/217786-htaccess-help-php/#findComment-1130493 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.