re
sladex wrote:
Hi,
Can anyone help me and give me any WORKING mod_rewrite .htaccess file to change url for original johncms 4.4.0
Would be great.
I tried my self.(first time)
But it's nothing working.
hostgator.com support couldn't run it.
crap.
hostgator are crap for a start and most hosts if u have globals function on in htaccess and also php.ini it will throw errors like 500
edit htaccess
Options -Indexes
ErrorDocument 402 JohnCMS / Build 929
ErrorDocument 403 JohnCMS / Build 929
ErrorDocument 404 JohnCMS / Build 929
ErrorDocument 500 JohnCMS / Build 929
DirectoryIndex index.php
RemoveHandler .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
AddType application/x-httpd-php-source .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
php_flag display_errors 0
php_value error_reporting 7
php_value register_globals 0
php_flag session.use_trans_sid off
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value allow_url_fopen 0
php_value arg_separator.output "&"
AddDefaultCharset UTF-8
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A1209600
<FilesMatch \.php$>
ExpiresActive Off
</FilesMatch>
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteCond %{HTTP:range} !(^bytes=[^,]+(,[^,]+){0,4}$|^$)
RewriteRule .* - [F]