Problema la un Rewrite URL

Secţiune dedicată începatorilor.

Moderatori: Moderatori, Start Moderator

blu3
PHPRomania Supporter
Mesaje: 11
Membru din: Vin Mai 11, 2007 5:23 pm

Problema la un Rewrite URL

Mesajde blu3 » Dum Ian 27, 2008 12:47 am

Salut, problema mea este cat se poate de simpla si la fel de bine nu imi merge. Doresc sa scriu o regula care sa-mi afiseze de forma

http://site.com/nume/cuvant_cheie

iar el primeste informatia din

fis.php?cuv=cuvant_cheie , o varianta arata asa: RewriteRule ^nume/(.*)$ fis.php?cuv=$1

iar linkul rescris, adica cel din cod care trimite cuvantul meu este cam asa:

<a href=tag/$nume>$nume</a>

Aparent totul e ok, imi formeza linkuri asa cum ii cer doar ca imi considera / respectiv ca fiind intrare in fisierul "nume" si de aici totul se duce peste cap, fiindca nu-mi mai recunoaste celelalte fisiere pe care i le includ, respectiv css si restul componentelor .

Cum as putea rescrie aceasta rgula sa nu mai considere "nume" un folder



iulyan_25
PHPRomania Supporter
Mesaje: 16
Membru din: Dum Ian 27, 2008 1:49 am

Mesajde iulyan_25 » Dum Ian 27, 2008 1:54 am


iulyan_25
PHPRomania Supporter
Mesaje: 16
Membru din: Dum Ian 27, 2008 1:49 am

Mesajde iulyan_25 » Dum Ian 27, 2008 1:57 am


Avatar utilizator
Quber
Senior Member
Mesaje: 874
Membru din: Mar Iun 27, 2006 8:33 pm
Localitate: localhost
Contact:

Mesajde Quber » Dum Ian 27, 2008 9:24 am

A man who dares to waste one hour of time has not discovered the value of life.

gargamel25
Junior Member
Mesaje: 38
Membru din: Dum Ian 27, 2008 10:22 am
Localitate: Bucuresti

Mesajde gargamel25 » Dum Ian 27, 2008 10:40 am


Avatar utilizator
Quber
Senior Member
Mesaje: 874
Membru din: Mar Iun 27, 2006 8:33 pm
Localitate: localhost
Contact:

Mesajde Quber » Dum Ian 27, 2008 11:33 am

A man who dares to waste one hour of time has not discovered the value of life.

gargamel25
Junior Member
Mesaje: 38
Membru din: Dum Ian 27, 2008 10:22 am
Localitate: Bucuresti

Mesajde gargamel25 » Dum Ian 27, 2008 12:44 pm


Avatar utilizator
Quber
Senior Member
Mesaje: 874
Membru din: Mar Iun 27, 2006 8:33 pm
Localitate: localhost
Contact:

Mesajde Quber » Dum Ian 27, 2008 12:50 pm

A man who dares to waste one hour of time has not discovered the value of life.

gargamel25
Junior Member
Mesaje: 38
Membru din: Dum Ian 27, 2008 10:22 am
Localitate: Bucuresti

Mesajde gargamel25 » Dum Ian 27, 2008 12:57 pm


Avatar utilizator
Quber
Senior Member
Mesaje: 874
Membru din: Mar Iun 27, 2006 8:33 pm
Localitate: localhost
Contact:

Mesajde Quber » Dum Ian 27, 2008 1:03 pm

nici nu merge...! eu mam incurcal acolo oleaq..! Imi cer Scuze...!
A man who dares to waste one hour of time has not discovered the value of life.

blu3
PHPRomania Supporter
Mesaje: 11
Membru din: Vin Mai 11, 2007 5:23 pm

ms

Mesajde blu3 » Dum Ian 27, 2008 1:11 pm



Înapoi la “PHP Incepători”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Google [Bot] și 16 vizitatori