How to fix a 404 problem related to URL Segment in Typo3 v9.5.9 - typo3-9.x

I'm using an Typo3 new updated website 9.5.9, www.mywebsite.com/mypage1 url generate a 404 page, but when i try this www.mywebsite.com/mypage1?no_cache=1 is working.
I have already tried empty cache.
I also tried upgrading from 9.5.7 tp 9.5.9.
Code error is : 404 Not Found.
Any body have some idea ?
Thanks!

Either the Site Configuration is wrong or not set. Check the Base URL .
Or your URL Slug of that page is different than you expected. Maybe TYPO3 added a "1" at the end of the URL Slug, because that excact URL Slug is already being used somewhere in the Database (See Tables "pages", Field "slug"). If you need it to be that excact URL Slug, then delete the wrong page in the database and after that recreate the URL Slug in the page settings.

The server admin have found the problem, it was from nginx server configuration under etx/nginx i don't know what he really changed but it is not a typo3 problem.
Thank you for your reply!

Related

How to redirect from old url to new url by entering old url in laravel 8?

I am working on a project in which I am working on permalink of each post which I always change after DMCA copy right issue. How can I do that using cache?
I have't try it. Please help me.

Get long url from any short or redirect url

I am using React native and i have some short url's or redirect urls to some other url. So i want to get destination url. So check with two libraries
https://www.npmjs.com/package/tall
https://www.npmjs.com/package/react-native-google-shortener
None worked for me as tall is using node. And 2nd one is old and giving me an error. So anyone have a solution to do it.
you don't need a library to do that, you can simply use XMLHttpRequest.
i created a snack : snack,
but only work with redirect URL not shorted ones like : shorturl.at/egzG4
Hope this helps you.

TYPO3 10.4.21 Pages accessible only via their id

Following a migration, I am trying to reconfigure TYPO3.
The backend is accessible by its url and I manage to connect. But the home page for example gives me the following error: The page did not exist or was inaccessible. Reason: No site configuration found.
All pages are not accessible by their url normally but are accessible through different query parameters, like /index.php?id=2&L=0.
I already tried to replace the .htaccess with the basic one provided by TYPO3, I also checked the Apache configuration and everything seems to be ok. I am not familiar with the TYPO3 CMS so I don't know if some of these configurations are done directly in its files. To me, it seems to be a mod_rewrite problem but I can't find it.
Someone would have a solution or at least a track to solve this problem?
As stated in the error message that you've posted it seems that the site configuration is missing. In the TYPO3 backend you can create new site configuration via Site Management => Sites.
Please check the site handling documentation for details.

Magento 2: Use 404 page instead of autosearch

We run Magento 2.1.7 and have the following problem:
When an URL is entered that does not exist magento starts an autosearch with the path. We want to redirect to a 404 error page if a wrong url is entered.
example:
correct url = www.domain.com/category1/product1
when you enter the url with a spelling mistake (www.domain.com/category1/ppproduct1) magento redirects to search page and starts searching after "category1 ppproduct1"
any ideas how to prevent this?
Go to admin panel and find the following option.
store->configuaration->web->Find the "Default Pages" option
CMS No Route Page : 404 Not Found
Change this setting and check. Clear cache.

double url apache htaccess rewrite

I have been searching the world wide web for a while now but can't seem to solve the issue.
I have a site where the base url has been entered as:
http://mydomain.com
The CMS will then a '/' at the end. Now, when the RSS feed is created the url does this:
http://mydomain.com/http://mydomain.com/link/to/page/location.htm
I haveonly just really started to look into regular expression with the .htaccess file and can't seem to figure this out?
Has anyone had this problem or can somebody point me in the right direction?
The page created for the link is a 404.
Cheers
smilinmonki666
I had a similar problem. I'm using Zend Framework and when I was initializing the front controller options, I was setting baseUrl to www.mydomain.com which made every link to be like this www.mydomain.com/www.mydomain.com.
I've left baseUrl to "" and it works perfectly. I hope this answer will help others with a similar problem.