Reg Rules

#1
As we can set rules in OLS console panel and using .htaccess also.

What is in OLS console ==>

RewriteEngine On
RewriteCond %{REQUEST_URI} !admin [NC]
RewriteRule .* - [E=cache-control:max-age=300]

And in .htaccess ==>

RewriteEngine On
RewriteRule .* - [E=Cache-Control:no-cache]

which one will apply?
 

Pong

Administrator
#2
setting rewrite rules in OLS console is similar to set rules in apache virtual host configuration file.
Setting rewrite rules in .htaccesss is similar to set rules in apache .htaccess.
Both rules will apply.

The rule syntaxs are different sometimes.

Please only set rules to one place instead of two places. .htaccesss is recommended.
 
Top