[TYPO3-ttnews] realurl: simplifying the url

Dmitry Dulepov dmitry at typo3.org
Fri Feb 6 12:35:17 CET 2009


Hi!

Claudio Strizzolo wrote:
> I'm trying to find a way to shorten the URLs generated by tt_news+realurl.
> At present my single news are indexed as
> 
> http://www.example.com/news/single_news_view/archive/2009/01/article/
> title.html

<rest skipped>

1. You can get rid of the "single" page. Use the same page for single and list views. This will remove /single_news_view/. Make sure you set up 301 redirects in .htaccess to make Google happy.
2. You can get rid of the /archive/2009/01/ by tt_news configuration
3. You can get rid of /article/ by using fixedPostVars instead of postVars.

In total these three steps will create http://www.example.com/news/title.html. Much better to my taste :)

> I'd like to remove the "archive" and "article" levels, if possible:

If you want to keep archive information, make a fixedPostVar for that page that includes three vars: year, month and news item title.

-- 
Dmitry Dulepov
TYPO3 core team
"Sometimes they go bad. No one knows why" (Cameron, TSCC, "Dungeons&Dragons")


More information about the TYPO3-project-tt-news mailing list