Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » .htaccess

#1 2015-11-08 09:48:27

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

.htaccess

hi!

due to increase of hackers attacks, host povider demanded to change
FollowSymLinks to SymLinksIfOwnerMatch in .htaccess file

did i made correctly?

#DirectoryIndex index.php index.html

#Options +SymLinksIfOwnerMatch
#Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

Offline

#2 2015-11-08 11:20:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: .htaccess

The # at the beginning of the line means that it is commented out and has no effect (it didn’t have any effect in the original .htaccess file either unless you had removed the #). You changed it correctly.
If the hosting provider wants to have that setting, why don’t they do this in the server setup instead of asking individual customers (assuming this is shared hosting).

Offline

  1. Index
  2. » How do I…?
  3. » .htaccess

Board footer

Powered by FluxBB