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
https://forums.phpfreaks.com/topic/32289-mod_rewrite-and-php-as-a-cgi/
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.