cotonti.com : Enhanced .htaccess https://www.cotonti.com Neueste Themenbeiträge Cotonti en Sun, 19 Oct 2025 03:08:51 -0000 GHengeveld The starting slash ensures the path is defined from the root of the domain rather than the current url path.]]> Mo, 06 Dez 2010 02:55:19 -0000 urlkiller
the thing was i was using a test domain in some subfolders like: mydomain.com/folder/folder/index.php

the htaccess but want's to change to mydomain.com/message.php and not to mydomain.com/folder/folder/message.php

so i just wanted to mention that this paths has to be changed too.
you just wrote: # Modify the rewritebase to match your Cotonti root path:
and didnt gave any hint that the paths from error docs need to be changed too...]]>
Mo, 06 Dez 2010 00:57:51 -0000
GHengeveld If you want you can always make the errordocument an absolute url (http://yoursite.com/message...).]]> Sa, 04 Dez 2010 18:59:09 -0000 urlkiller
when using sub folders of a current url you also have to change
the error document paths. if you dont add the complete path in front of /message.php? like
/myfolder1/myfolder2/message.php? because somehow it wont work either..]]>
Sa, 04 Dez 2010 16:34:57 -0000
ez
There are some new things for me that i will use for sure.

THNX]]>
Fr, 03 Dez 2010 16:48:22 -0000
GHengeveld # Kort : This depends on the user choice and is done to stay away from duplicate links (same page with or without www). In most cases now www is removed to make the url shorter.
Agreed, it's a personal preference. I also think without it looks better, but there's a reason for using www. If the site itself is under the www subdomain, all cookies will be stored for this subdomain only. For performance it's better to serve images and other static content from a (sub)domain that does not have any cookies assigned to it. Otherwise the cookies will be sent along with every request for an image, even though that data is completely useless. If your site isn't under a subdomain all cookies stored by it are stored for every subdomain in the site, including a subdomain for static content, or Cotonti installations under other subdomains. It limits your options and if you have multiple sites under the same domain it can also be a security risk. Big sites often use different domain names entirely to serve static content, mainly to avoid the parallel download limit (2 files) of web browsers.

Many users probably wont use this technique and have only one instance of Cotonti running, so they can just as well remove the www instead of add it. That's up to the end user. Actually I should write a guide on how to setup static content delivery over a subdomain.

More info:
Use Cookie-free Domains for Components
Split Components Across Domains

Added 2 days later:

After discussing this with Trustmaster I've made some changes to the file. Some features have been removed or are disabled by default.

http://www.cotonti.com/datas/users/htaccess2_68.txt

  • Forcing PHP 5 is now optional (only needed for PHP 4 servers)
  • Disabling ETags is optional (only for cluster/cloud based servers)
  • Adding or removing 'www' is now up to the admin to decide, both are present but disabled by default.
  • Removing of ending slash has been removed, it's not really needed and may interfere with further rewriting.
]]>
Di, 30 Nov 2010 19:31:34 -0000
Kort # Koradhil : Automatically add www. to domain name for SEOThis depends on the user choice and is done to stay away from duplicate links (same page with or without www). In most cases now www is removed to make the url shorter.]]> Di, 30 Nov 2010 14:50:25 -0000 urlkiller Di, 30 Nov 2010 14:46:39 -0000 GHengeveld HTML5 Boilerplate framework. This is a collection of front-end development best practices, css resets, javascript enhancements and a lot of other cool stuff aimed at speeding up your website. The framework also comes with a .htaccess file with tweaks for Apache servers.

I've worked a bit on this file to make it suitable for Cotonti. I've added some of my own tweaks that I often use with Cotonti too. I suggest we include this in Cotonti by default.

http://www.cotonti.com/datas/users/htaccess_68.txt

Features:
  • Add support for modern filetypes
  • Force PHP 5
  • Set file compression on web fonts
  • Configure cache expiration and disable ETags
  • Force Internet Explorer to use latest parsing engine, or Chrome frame if present
  • Disallow access to urltrans, cache and template files
  • Set ErrorDocuments to Cotonti messages
  • Automatically add www. to domain name for SEO *
  • Remove ending slash from URL for SEO *
* With support for HTTPS]]>
Di, 30 Nov 2010 08:04:25 -0000