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! 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! 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] Link to comment https://forums.phpfreaks.com/topic/217786-htaccess-help-php/#findComment-1130493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.