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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.