This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

404 errors all over


avatar
cosmin 269
From: -
404 errors all over

Hi Philipp, I upgraded to 2.0.4 by overwriting the old files and running cupgrade.php My host says that it supports .htacess but even with search friendly URLs disabled I get page not found for any link (see  File Portal - Download). Any ideas?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: 404 errors all over
avatar
Editor
0
From: -
According to the FAQ of your webhost you need to add the following line before the rules:

RewriteBase /ess20
1 Re: 404 errors all over
avatar
OP 269
From: -
I don't get it. Does force type work with .htaccess disabled?
Because I did the following
The ForceType feature will turn URLs like  http://yoursite/contentteller.php/news/story/an_example_story.html to  http://yoursite/contentteller/news/story/an_example_story.html

In order to use this feature, you need to add the following .htaccess file to your root directory:

<FILES contentteller>
ForceType application/x-httpd-php
</FILES>



I copied your .htaccess code from the previous post and uploaded it, together with the above change. As soon as I turn on "Use mod_rewrite for SEO URLs:" I get the 404 errors. I turn it off, the site works fine, even with force type enabled. Any thoughts? I guess I could live without mod-rewrite as long as I get some kind of URL rewriting to make the site more SEO friendly, but it seems strange.
1 Re: 404 errors all over
avatar
Editor
0
From: -
No, .htaccess is the same.

You need to uncomment the following lines in .htaccess for mod_rewrite:

# Uncomment the following RewriteCond/RewriteRule lines if you are using the mod_rewrite SEO option

# You may need to adjust the third RewriteCond line to exclude additional directories
# Note: Using the mod_rewrite option is only recommended for experienced users
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(cadmin|jscripts|images|sitemap)/
RewriteRule ^(.+)$ contentteller.php [L,QSA]
1 Re: 404 errors all over
avatar
OP 269
From: -
OK uploaded the .htacess (renamed it, too) that came with 2.0.4 left ForceType enabled to off, and set Use mod_rewrite for SEO URLs: and Search engine friendly URLs:
to yes. I still get 404 all over.
1 Re: 404 errors all over
avatar
OP 269
From: -
force type is already off. and so are SEF URLs. and .htaccess is already there as i had already renamed it when i installed 2.0.3 did you make any changes to .htaccess in 2.0.4?
1 Re: 404 errors all over
avatar
Editor
0
From: -
You need to disabled ForceType:
Manage Websites => Edit => ForceType enabled => No

The default search engine friendly URLs (contentteller.php/) should work just fine on any Linux based servers while the ForceType and mod_rewrites options needs .htaccess support.

Have you renamed htaccess.txt to .htaccess?
1 Re: 404 errors all over
avatar
OP 269
From: -
Actually the link should be  File-Portal.net

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.