<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-dev.creativecommons.org/index.php?action=history&amp;feed=atom&amp;title=Cchost%2Fadmin%2Fapache%2Fconfig</id>
	<title>Cchost/admin/apache/config - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-dev.creativecommons.org/index.php?action=history&amp;feed=atom&amp;title=Cchost%2Fadmin%2Fapache%2Fconfig"/>
	<link rel="alternate" type="text/html" href="https://wiki-dev.creativecommons.org/index.php?title=Cchost/admin/apache/config&amp;action=history"/>
	<updated>2026-10-01T05:32:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki-dev.creativecommons.org/index.php?title=Cchost/admin/apache/config&amp;diff=19414&amp;oldid=prev</id>
		<title>Fourstones: New page: Go back to ccHost Administrators&#039; Documentation  = Enabling &#039;Pretty URLs&#039; =  &#039;&#039;As of ccHost 4.0: if you are installing ccHost into a clean directory on your web server wit...</title>
		<link rel="alternate" type="text/html" href="https://wiki-dev.creativecommons.org/index.php?title=Cchost/admin/apache/config&amp;diff=19414&amp;oldid=prev"/>
		<updated>2008-10-17T18:26:14Z</updated>

		<summary type="html">&lt;p&gt;New page: Go back to &lt;a href=&quot;/wiki/Cchost/admin&quot; title=&quot;Cchost/admin&quot;&gt;ccHost Administrators&amp;#039; Documentation&lt;/a&gt;  = Enabling &amp;#039;Pretty URLs&amp;#039; =  &amp;#039;&amp;#039;As of ccHost 4.0: if you are installing ccHost into a clean directory on your web server wit...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Go back to [[cchost/admin|ccHost Administrators&amp;#039; Documentation]]&lt;br /&gt;
&lt;br /&gt;
= Enabling &amp;#039;Pretty URLs&amp;#039; =&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;As of ccHost 4.0: if you are installing ccHost into a clean directory on your web server without any previous ReWrite rules in your .htaccess file, then the installer will attempt to do what follows below automatically. &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
All ccHost commands and URLs based on query strings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://your_install_root/index.php?ccm=/media/people/victor&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That same URL can be made &amp;#039;pretty&amp;#039; on Apache installations so that it looks more like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;http://your_install_root/media/people/victor&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the block of code in your .htaccess file setting the rewrite rules to get pretty urls:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteRule ^(.*)$ /index.php?ccm=/$1 [L,QSA]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you installed to a directory below the site&amp;#039;s root make sure to specify that in the RewriteBase directive.&lt;br /&gt;
&lt;br /&gt;
For perfomance reasons (and if you are given access) you should put those directives into an Apache virtual host block in the .conf file for your server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
ServerName ccmixter.localhost&lt;br /&gt;
ServerPath /ccmixter&lt;br /&gt;
#DocumentRoot /var/www/localhost/htdocs/cchost &lt;br /&gt;
DocumentRoot /home/rejon/Documents/freelance/creativecommons/src/ccmixter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Directory &amp;quot;/home/rejon/Documents/freelance/creativecommons/src/ccmixter&amp;quot;&amp;gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteRule ^(.*)$ /index.php?ccm=/$1 [L,QSA]&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= More .htaccess file settings =&lt;br /&gt;
&lt;br /&gt;
Put the following into a file named &amp;#039;.htaccess&amp;#039; in your root directory of a ccHost setup if you can&amp;#039;t set your php.ini settings for your hosting setup. These settings should work, but should be tested first. They correct many memory problems people have with ccHost.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# php configs http://www.php.net/manual/en/ini.core.php#ini.memory-limit&lt;br /&gt;
# http://www.php.net/manual/en/ini.php#ini.list&lt;br /&gt;
&lt;br /&gt;
php_value max_input_time 200&lt;br /&gt;
php_value max_execution_time 200&lt;br /&gt;
php_value memory_limit 20M&lt;br /&gt;
php_value upload_max_filesize 20M&lt;br /&gt;
# next line fixes noncompliant &amp;amp; used in php&lt;br /&gt;
php_value arg_separator.output &amp;amp;amp;&lt;br /&gt;
php_flag session.use_trans_sid off&lt;br /&gt;
# turns off annoying autoquotes&lt;br /&gt;
php_flag magic_quotes_gpc off&lt;br /&gt;
&lt;br /&gt;
Options +MultiViews&lt;br /&gt;
&lt;br /&gt;
# Stop morons that are hammer your site&lt;br /&gt;
# Open Clip Art Library had someone DDoS&amp;#039;ing our site&lt;br /&gt;
&amp;lt;Limit GET&amp;gt;&lt;br /&gt;
 order deny,allow&lt;br /&gt;
 deny from 59.116.0.0/16&lt;br /&gt;
&amp;lt;/Limit&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fourstones</name></author>
	</entry>
</feed>