From: luci a. l. d' b. <sf...@gr...> - 2009-04-09 19:46:49
|
try RewriteRule ^article([0-9]+)/([^\.]+)$ tiki-read_article.php?articleId=$1 [QSA,L] luci On 04/09/2009 09:31 PM, Sylvie Greverend wrote: > I am implementing the sefurl for article and blog > But I can not figure out how to do the rewrite rule > RewriteRule ^article([0-9]+)/(.+)$ tiki-read_article.php?articleId=$1 [QSA,L] > transforms effectively article1/toto into > tiki-read_article.php?articleId=1 > but after all the js, img ... are looked in the subdirectory article1/ > > Before , I change the syntax to something I can handle, has somebody an > idea how to avoid > add path info postfix: /var/www/html/tiki3/article1 to any other url > Thank you > sylvie > > > On Tue, 2009-03-31 at 16:05 -0400, Sébastien Lord-Jetté wrote: > >> Hello People of TikiLand, >> >> I require your opinion on the URLs we currently have in Tiki for >> articles and blogs. >> >> Right, this is how it looks: >> >> ARTICLES >> http://www.mywebsite.com/tiki-read_article.php?articleId=6 >> or >> http://www.mywebsite.com/article6 >> >> BLOGS >> http://www.mywebsite.com/tiki-view_blog_post.php?postId=1 >> or >> http://www.mywebsite.com/blog1 >> >> From the SEO point of view, this is bad. >> >> How about having something like this: >> http://www.mywebsite.com/article6/This+is+the+title+I+would+prefer+to+use >> and >> http://www.mywebsite.com/blog1/This+is+the+title+I+would+prefer+to+use >> >> Any thoughts on this? >> >> Thanks, >> >> Sébastien Lord-Jetté >> Director >> >> CGCOM | Web >> 85, Saint-Paul Street West, suite 240 >> Montréal, Québec H2Y 3V4 >> >> T 514 848-9770 x232 >> F 514 848-9772 >> >> >> Visit our new website >> www.cgcom.com >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Tikiwiki-devel mailing list >> Tik...@li... >> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Tikiwiki-devel mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > luci -- :. :.: ::: : luciash d' being aka Lukas 'luci' Masek mail: luci2009 [ᴂt] ground.cz |