SMF Support > Bosanski/Hrvatski/Srpski (Bosnian/Croatian/Serbian)
pretty url linkovanje
Zuća:
kako resiti problem s url-ovima kad je instaliran preti url...tj. on poklapa sve linkove i sad npr. kad ja kreiram mojdomen.com/upload on me redirectuje stalno na mojdomen.com ,jer cu npr vrsiti upload slika na tom "upload" folderu i sad on kreira odredjene url-ove npr /upload/323412 itd...a prety url stalno redirektuje na mojdomen.com
anteprimorac:
postavi ovdje .htaccess file
Zuća:
postavljen
anteprimorac:
--- Code: ---# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 14, 2012, 21:53
RewriteEngine on
RewriteBase /
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|buddies|calendar|clock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|coppa|contact|credits|deletemsg|display|dlattach|editpoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(editpoll2|mediapro|emailuser|findmember|forum|portal|groups|help)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(helpadmin|im|jseditor|jsmodify|jsoption|lock|lockvoting|login)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login2|logout|markasread|mergetopics|media|mgallery|mlist|moderate)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn|pm)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post|post2|printpage|profile|quotefast|quickmod|quickmod2|recent)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recenttopics|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(restoretopic|search|search2|sendtopic|sitemap|smstats|suggest|spellcheck)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(splittopics|stats|sticky|theme|topicsolved|trackip|xlinks|about:mozilla)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(upload)/?$ ./$1 [L,QSA]
# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]
# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
# PRETTYURLS MOD ENDS
--- End code ---
Oprobaj to, premda sam ja bot u htaccess, al ovo mi logično izgleda :D
EDIT:
kao što vidiš dodao sam RewriteRule ^(upload)/?$ ./$1 [L,QSA]
ako želiš još foldera onda RewriteRule ^(upload|folder2|folder3)/?$ ./$1 [L,QSA]
Zuća:
sredi samo problem do /upload foldera...a naredne brojke koje se dodaju uz upload npr- > upload/234221 ne zeli da otvori tj. samo prebaci na forum
Navigation
[0] Message Index
[#] Next page
Go to full version