SMF Support > SMF 2.0.x Support
I need help with a more friendly URLs...
brzmarou:
Welcome.
Sorry for my English;)
I am a beginner with the CMS (hehe, and it really;)). I'm in the process of creating your first forum. And therefore I have some questions (or rather the problems ... because, I did it, with part ... and this is mainly thanks to this forum;)).
So - most important - issue.
How to set the friendly url? : D
And so - I have a pretty url, I configured it ... rewrites the address ... but ...
FIRST
domain - forum.wirtualnyadept.pl
swiatkobiet- board
uroda - forum in board swiatkobiet
kosmetyki - subforum in forum uroda
temat testowy- test topic ...
breadcrumbs looks like:
Board wirtualny adept » swiatkobiety » uroda » kosmetyki » test topic
By contrast URL like this:
forum.wirtualnyadept.pl/kosmetyki/temat-testowy/
KOSMETYKI (ang. Cosmetics) in the forum is a subforum URODA(beauty) in SWIAT KOBIET BOARD
The question is - if you can, or how to set up (I suppose. Htaccess;)) to the address looks like this:
forum.wirtualnyadept.pl/swiat-kobiety/uroda/kosmetyki/temat-testowy/
or even as a last resort
forum.wirtualnyadept.pl/uroda/kosmetyki/temat-testowy/
Someone help me with this? :)
青山 素子:
SMF is a forum, not a CMS.
"Friendly" URLs aren't really helpful with SEO. If you really want this type of URL, the Pretty URLs modification works quite well.
brzmarou:
To determine the competitiveness of the tested things like inurl and intitle - happened to me here in terms of inserting the url ...
prettyurl btw .. I have, and only what you can seeI was able to get ...
Arantor:
You can actually configure things in the Pretty URLs configuration - by default the link to a board is simply its name, but there's no reason why you can't change it in the board's configuration to be parent/subboard/ as you want.
brzmarou:
Ok ... I try to do as you write, through editing created by prettyurl. htaccess file, but to fully understand the syntax: (.
This is my htaccess..
--- Quote ---# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# hxxp:code.google.com/p/prettyurls/ [nonactive]
# .htaccess file generated automatically on: June 22, 2012, 17:02
RewriteEngine on
RewriteBase /
# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|groups|help|helpadmin|im|jseditor|jsmodify|jsoption)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lock|lockvoting|login|login2|logout|markasread|mergetopics|mlist)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(pm|post|post2|printpage|profile|quotefast|quickmod|quickmod2)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(restoretopic|search|search2|sendtopic|smstats|suggest|spellcheck|splittopics)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(stats|sticky|theme|trackip|about:mozilla|about:unknown|unread|unreadreplies)/?$ index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ index.php?pretty;action=$1 [L,QSA]
# Rules for: boards
#RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ index.php?pretty;board=$1.0 [L,QSA]
#RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-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]
#RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ index.php?pretty;board=$1;board=$2;topic=$3.$4 [L,QSA]
# PRETTYURLS MOD ENDS
--- End quote ---
What and how do I change it? I'm sitting on this for a long time ...
Navigation
[0] Message Index
[#] Next page
Go to full version