Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
stranica.com/PROFIL -> stranica.com/korisnik.php?q=PROFIL

 
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
emponja



Joined: 19 Feb 2009
Posts: 2

PostPosted: 19.02.2009 19:45    Post subject: stranica.com/PROFIL -> stranica.com/korisnik.php?q=PROFIL Add user to your forum ignore list Reply with quote

Bio bih pre zahvalan nekome kad bi mi napokon pomogao da riješim ovo.
Zanima me kako da u htaccess-u podesim slijedeće. Na zahtjev:

www.nekastranica.com/imeprezime

dobijem:

www.nekastranica.com/profil.php?q=imeprezime

Ili ako imate koji alternativni način da riješim to. Naime, npr. korisnik "Ivan Horvat" u bazi ima polje linka "ivanhorvat", kad on upiše www.nekastranica.com/ivanhorvat , da izbaci stranicu koja je s njegovim podatcima. (PHP i mysql djelovi su riješeni, problem mi je samo to / pozivanje varijable te čitanje iste iz baze.)

HVALA, svaka pomoć je dobrodošla!!
Back to top
View user's profile Send private message
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 19.02.2009 21:58    Post subject: Re: stranica.com/PROFIL -> stranica.com/korisnik.php?q=PR Add user to your forum ignore list Reply with quote

emponja wrote:
Bio bih pre zahvalan nekome kad bi mi napokon pomogao da riješim ovo.
Zanima me kako da u htaccess-u podesim slijedeće. Na zahtjev:

www.nekastranica.com/imeprezime

dobijem:

www.nekastranica.com/profil.php?q=imeprezime


Dodaj u .htaccess:
Code:
DirectoryIndex profil.php?q=imeprezime


Za ovo drugo ne znam Smile A ovo valjda radi, hehe.
Back to top
View user's profile Send private message Twitter profile
snyder



Joined: 21 Dec 2005
Posts: 57
Location: Zagreb

PostPosted: 20.02.2009 10:34    Post subject: Add user to your forum ignore list Reply with quote

zeus, tak to ne ide Smile
ovo je to kaj ti hoces
Code:

RewriteEngine On
RewriteRule ^([a-zA-z_-]+)$ profil.php?q=$1
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Zeus



Joined: 09 Sep 2003
Posts: 775
Location: Čakovec

PostPosted: 20.02.2009 10:53    Post subject: Add user to your forum ignore list Reply with quote

Ali sam mu na neki nacin ukazao pravi put - pisanje u .htaccess datoteku Smile
Back to top
View user's profile Send private message Twitter profile
emponja



Joined: 19 Feb 2009
Posts: 2

PostPosted: 20.02.2009 11:59    Post subject: Add user to your forum ignore list Reply with quote

Hehe, hvala Zeus svejedno!

snyder imaš pivu! Wink thx puno
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group