I migrated a wordpress website, using the Yoast SEO plugin, to TYPO3 and the news articles have URL’s that use only the domain and the title;
## example
http://example.com/news-title/
-
I work with TYPO3 v8.7.10, tx_news 6.3.0 and realurl 2.3.1
-
I know how to hide the controller and action name by using fixedPostVars as described in docs.typo3.org
-
of course I can do a permanant redirect with .htaccess
-
I know the trick in the configuration with
user_encodeSpURL_postProc
anduser_decodeSpURL_preProc
but there I need at least one directory …
does anybody knows any other option ?
2
Answers
With the combination of
you are able to create such an URL.
But I would suggest not to use the start page and create redirects to e.g. http://example.com/article/news-title/.
I propose this solution
1) Skip not needed arguments
By using the following setting
the links don’t include the controller and action anymore. I prefer to use this instead of removing it in realurl because of less magic in realurl.
2.) Render the single view on the homepage
Just for clarification: As homepage is the meant the 1st page.
This is just a proof of concept as the final integration depends on how render your templates & content. You could also remove the
page.10 < lib.news
and check the variablelib.news
in your content or you assign it to the variables and check that in the templates.