Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: quipster99 - kesäkuu 02, 2005, 04:46:37 AP

Otsikko: howto edit the url rewrite
Kirjoitti: quipster99 - kesäkuu 02, 2005, 04:46:37 AP
how and where do i edit the url rewrite rules for search engine friendly url's
example --
if
www.domain.com/ndex.php/topic,2.0.html
it would like to read
www.domain.com/index.php/t2-$context['page_title']
or
something like www.domain.com/index.php/board,1.0.html
www.domain.com/index.php/b1-$boardsname
not sure of the variable name yet of $boardsname

quip
Otsikko: Re: howto edit the url rewrite
Kirjoitti: [Unknown] - kesäkuu 02, 2005, 06:42:57 IP
You're losing the page number if you do that.  There are other flaws, since if I'm on the message index you have to query for the topic titles or assume the link content is right.  And what if I post such links?

It's in QueryString.php, anyway.

-[Unknown]
Otsikko: Re: howto edit the url rewrite
Kirjoitti: quipster99 - kesäkuu 02, 2005, 08:26:40 IP
i'll take a look at querystrings.php-   i dont mind adding in the page number just add another dash or something then the page number.
Otsikko: Re: howto edit the url rewrite
Kirjoitti: golf3.de - tammikuu 23, 2006, 12:21:11 IP
Is there something possible to give the urls a title function?