Jump to content

.htaccess Help! Php!


Deanznet

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.