TYPO3 9.5.21 startpage /index/ in URI - typo3

I've updated TYPO3 from 8.x to 9.5.21 and the page is available like this http://example.com
But if I go back to the startpage it always appends /index/ and then the URI looks like this http://example.com/index/.
Does anybody know what the problem is?

Is your startpage the root page? You can check that in the page properties => Tab "Behaviour" => Use as Root Page
And you should check the URL Segment field in your page properties. If your start page is your root page, the field should be empty.
Another thing to check is the routing configuration in your site config. You can find it in config/sites/. Do you have a special setting in the routeEnhancers section?

I solved it. The problem was the default: / in the routeEnhancers.
routeEnhancers:
PageTypeSuffix:
type: PageType
default: /

Related

TYPO3: Page Not Found if behind Frontend Login

I have a TYPO3 10.4 with Frontend Login enabled. Subpages are behind a FE Login:
If i want to link to an subpage domain.com/page1/page1-1/page1-1-1/
I get an 404 Error:
Page Not Found
The page did not exist or was inaccessible. Reason: Subsection was found and not accessible
In my TypoScript I have:
config {
typolinkLinkAccessRestrictedPages = 2450
typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID###
}
According to the documentation about typolinkLinkAccessRestrictedPages
How can I setup my page to redirect to the login form with the right URL.
This configuration is only used when you generate links. This does not handle cases which directly access the URL.
https://github.com/plan2net/sierrha can help you with that.

TYPO3 9.5.x URL Segment (slug) ignore page

In the past we organized pages inside the page-tree by putting them into pages like "meta" or "submenu". These pages had the option "exclude from speaking url" so their name was not rendered to the url.
Is there any option to do this in TYPO3 9.5 to ignore pages from generating the "slug"?
as example:
WRONG: https: //www.somedomain.tld/metamenu/terms-and-conditions/
RIGHT: https: //www.somedomain. tld/terms-and-conditions/
How to "ignore" the page "metamenu" for automatic-generating the slug?
Best regards
Johannes
It is mandatory for a page to have set a slug and every menulevel will generate another url part. It is not possible to exclude a page - think about how to access this page via url
Here Mathias Schreiber tells a bit about this feature: Feature Demo - Speaking URLs Part 1
The TYPO3 extension "masi" provides this feature, including an upgrade wizard that migrates the realurl tx_realurl_exclude settings.
Have you tried using a Folder instead of a "Page"?
page/page/page
somedomain.tld/metamenu/terms-and-conditions/
page/folder/page
somedomain.tld/terms-and-conditions/
You can leave the parent-page as it is and edit your child-pages. There you can delete parts of the urls in the slug-field.
There's a feature in RealURL for TYPO3 8.7 "Exclude from speaking URL". If set 'domain.com/page-one/' loads 'page-one' and 'domain.com/subpage-of-page-one/' loads 'subpage-of-page-one' with no need of 'page-one' in the URL.
The very same thing can be achieved in TYPO3 9.5 manually editing slugs but you can't set the parent page to be excluded from the URL automatically.
It's a missing feature.
I had the same Problem. Sadly there is no "good" solution as far as i know. But there is a little trick. You can fix this in the database. I deleted all my "slug"-entries in in the database for my pages. Then i wrote in all pages wich should not show in the url in slug "/". This does sadly not work in TYPO3, because the BE allows just one "/" and the second "/" will be changed to "/1". But in the Database you can do it. After you edited the slug for your page metamenu and other to "/", you can go into the upgrade-wizard in the installtools, reset the "generate slugs" task and run this task again. This is sadly the only solution i came up with.

Why do I get an 404 Error after using TYPO3 V9.5

I am using TYPO3 9.5 and I created a root page with several subpages.
Before I created a site configuration the subpages were available as
/index.php?id=19
after the site configuration the url has changed to
/events
which is absolutely fine but my subpage cannot be found anymore. I get an 404 Error.
The subpage is still available under the old url but the new one doesn't work.
What can I do to fix this?
after changing the slug(path/path segment) for a page you need to update the slugs for all subpages manually.
The slug is generated automatically when the page is created. Probably your slugs were generated wrong before you build your site configuration.
Try to autogenerate all the slugs with the adapted wizard. You must do it by hand for each page as there is no wizard for page subtrees (yet). you might do the multi-edit in the list module for the slug field.
I have similar issue and no clue how to solve. See TYPO3 9.5 URL Routing with URL Segment is not working
Manual slug override, saving, chache clearance etc. does not help.
Are you using as well Apache? Maybe the issue is related to the webserver.

Typo3 customize footer-menu

I have a site on TYPO3 version 8.7.10, I have such a link http://p448297.webspaceconfig.de/footernavigation/allgemein/impressum.html
I need to remove it from footernavigation, how to do it? Thank you so much
You can edit the properties of your footernavigation page and enable the option Exclude from speaking URL.
This instructs RealURL to to not add a path segment for this page if it is in the middle of other path segments. If you directly open the page, the page will be part of the path of course, otherwise it would be inaccessible.
In the pagesettings for the "footernavigation" page / pagetree node (page,shortcut) just check the "exclude from spealing url" check
realUrl Provide pretty nice option to exclude a page from URL segment. For that go to Page-> property->General. You will find an option Exclude from speaking URL check this Screenshot.
In your case go to footernavigation separator edit property and exclude this from URL.
-root
--Home
--about
--footernavigation // Exclude from realUrl from page property
-- allgemeinx
That's it, this what you're actually looking for!
Greetings!

Where are subdomains ("shortcuts") defined in TYPO3?

On a corporate website managed with TYPO3 there are shortcuts defined which lead to a page on the site.
Example:
Corporate website is www.acompany.com
Then there is a site www.acompany.com/coolproduct which is redirecting the user to www.acompany.com/products/productgroup3/product25.htm for example.
Where in TYPO3 can such "shortcut" links be defined?
Most probably some page in the page tree has set type to: Shortcut which causes that it points some other page or resource, it's also possible that is set as Link to External URL and there is full URL given.
Check the page tree in the backend and find your coolproduct page in it. Then check the site's properties and change if required to other value/type.
It's also possible that this URL is generated by some plugin or TypoScript, but in this case you'll need to investigate it yourself.
Simplest way to find these kinds of things is actually using the search engine in the TYPO3 backend. You will find it in the upper right corner.
If this fails, what I do is install PhpMyAdmin from the extension repository. Once you have PhpMyAdmin you can use it's search functionality to find anything in the database using a search query of: '%coolproduct%' and selecting all tables. In the results look for the 'pid' field. It tells you on which page in TYPO3 the found item is located.
Does the page use the extension realURL? If so, there might be realURL redirects defined.
Have a look at page -> info -> RealUrl -> Redirects
Maybe you the user has defined this link redirection in many pages, you can search for it in the database exactly in the tt_content table.
You can set shortcut for your domain to any page of your site, so when user enter only your domain name in url then it redirects to page which you set in shortcut.
For that edit your domain and set shortcut to any page of your page tree.