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
Molim Help! =( Mod_Rewrite...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
hrv0j3



Joined: 03 Aug 2007
Posts: 34

PostPosted: 29.01.2008 16:28    Post subject: Molim Help! =( Mod_Rewrite... Add user to your forum ignore list Reply with quote

Pozdrav!

Evo imam problemcic Smile

Naime... igram se s mod_rewrite i pokusavam skuzit barem nesto osnovno malo Smile

i sad ... stavim npr.

Code:
RewriteRule ^grupe/([A-Za-z0-9-]+)_([A-Za-z0-9-]+)/?$ /grupe/$1_$2.php [L]


ali onda sav php include koji je u pozvanom fileu nije dobar tj. javlja No such file or directory Sad

Kako rijesiti to?

I jesam li ovaj rule dobro napravio ili ima bolje rijesenje neko?

Hvala svima!

Pozdrav
Back to top
View user's profile Send private message MSN Messenger
snyder



Joined: 21 Dec 2005
Posts: 57
Location: Zagreb

PostPosted: 01.02.2008 16:16    Post subject: Add user to your forum ignore list Reply with quote

sto ti tocno javi?
jeli ti path koji htaccess napise valjani?
jel ti je npr. vijesti_list.php u http://localhost/grupe/ ?
ako imas npr. "http://localhost/mojsajt/" stavi prije ruleova:
RewriteCond /mojsajt/

malo informacija si dao Smile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
hrv0j3



Joined: 03 Aug 2007
Posts: 34

PostPosted: 01.02.2008 17:07    Post subject: Add user to your forum ignore list Reply with quote

ok jesam njub,ali ne bash toliki.. valjda Embarassed

hehe...

Ma sve je ok sve radi Smile ali da pojasnim sto sam zelio...

znaci zelim ovo...
kada upisesm
www.domena.com/grupe/pregled

da otvara ubiti file
www.domena.com/grupe/pregled.php

ili ako upisem
www.domena.com/grupe/nova-grupa

da otvara file:
www.domena.com/grupe/nova_grupa.php

i sad... sve je radilo i otvaralo ok... ali! ja budala sam include stavio kao da je file koji se includa u folderu grupe... a file je u root-u Smile i to je bila greska Smile

eto.. pa nek bude tema ako kome zatreba Razz

btw. stavio sam RewriteRule ^grupe-([A-Za-z0-9-]+)-([A-Za-z0-9-]+)/?$ /grupe/$1_$2.php [L]

jeli to dobro rijesenje ili ima neko bolje? (to sam stavio da mi bude www.domena.com/grupe-public-pregled)

pozdrav
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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