Jump to content
php.lv forumi

MOD REWRITE


dAivEd

Recommended Posts

Chau visiem :)

 

Tagad mans variants ir:

 

RewriteEngine On

 

RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)$ index.php?$1=$2&$3=$4&5=$6

RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/$ index.php?$1=$2&$3=$4&5=$6

 

 

Un man iet taa:

index.php?page=news

pret

/page/news/

 

Man vajag:

 

index.php?page=news&id=120&quote=2

 

pret

 

/page/news/id/120/quote/2

 

Meginaju daudz ko vienalga ta ka vajag nesanaak :(

Link to comment
Share on other sites

RewriteEngine On

RewriteRule ^page/([^/]*)/([^/]*)/quote/([^/]*)\$ /?page=$1&id=$2&quote=$3 [L]

Link to comment
Share on other sites

×
×
  • Create New...