Jump to content

mod_rewrite and php as a CGI


H0unter

Recommended Posts

Hello everybody!! !!

How r u????

Ive just arrived !! my first post  !!

Hope u can help me!!

I have a hosting(Linux & apache) and im using a php as a cgi, i have problems with a mod_rewrite , dont work :S! dont know why :S!! im a little noob in this thing , ive heart that rewrite is diferents when php is installed as a CGI , can give me a hand?? please!

RewriteEngine on
RewriteBase /

RewriteRule ^show\.php/(.*)$ show2.php?img=$1 [L]
RewriteRule ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2 [L]
RewriteRule ^view\.php/(.*)$ view2.php?img=$1 [L]
RewriteRule ^image\.php/([a-z]{1})(.*)$ images2.php?$1=$2 [L]
RewriteRule ^gallery/([0-9]+)-([^/]*)/(.*)$ gallery.php?gal=$1&img=$3 [L]
RewriteRule ^view/([0-9]+)-([^/]*)/(.*)$ gallery_body.php?gal=$1&img=$3 [L]

Here is the httacces!!

Thanks for your time and help!!

PSD: im peruvian and dont speak english T_T!! sorry if u cant undertand me veru wel T_T!!

Cyas

Att
Hounter
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.