Additions:
http://httpd.apache.org/docs/2.2/rewrite/flags.html
==mod_rewrite url to index.php==
RewriteBase /
RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule ^(.*) /index.php?req=$1 [L,PT]
==mod_rewrite url to index.php==
RewriteBase /
RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule ^(.*) /index.php?req=$1 [L,PT]
Deletions:
http://httpd.apache.org/docs/2.2/misc/rewriteguide.html
Additions:
>>http://httpd.apache.org/docs/2.2/rewrite/
http://httpd.apache.org/docs/2.2/rewrite/rewrite_flags.html
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.2/misc/rewriteguide.html
http://httpd.apache.org/docs/2.2/rewrite/rewrite_flags.html
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.2/misc/rewriteguide.html
Deletions:
Additions:
>>http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
>>===mod_rewrite===
==mod rewrite logging==
apache 2.2 has mod rewrite logging
==RewriteLogLevel==
The RewriteLogLevel directive sets the verbosity level of the rewriting logfile.
The default level 0 means no logging, while 9 or more means that practically all actions are logged.
%%
RewriteLogLevel 5
%%
==RewriteLog==
The RewriteLog directive sets the name of the file to which the server logs any rewriting actions it performs.
If the name does not begin with a slash ('/') then it is assumed to be relative to the Server Root.
The directive should occur only once per server config.
%%
RewriteLog "/var/log/apache/logs/rewrite.log"
%%
>>===mod_rewrite===
==mod rewrite logging==
apache 2.2 has mod rewrite logging
==RewriteLogLevel==
The RewriteLogLevel directive sets the verbosity level of the rewriting logfile.
The default level 0 means no logging, while 9 or more means that practically all actions are logged.
%%
RewriteLogLevel 5
%%
==RewriteLog==
The RewriteLog directive sets the name of the file to which the server logs any rewriting actions it performs.
If the name does not begin with a slash ('/') then it is assumed to be relative to the Server Root.
The directive should occur only once per server config.
%%
RewriteLog "/var/log/apache/logs/rewrite.log"
%%
Deletions:
Additions:
==mod_rewrite==
Once [[ModRewrite mod_rewrite]] is enabled and if AllowOveride is on then you can use [[HtAccess .htaccess]] files in each subdirectory to overide the default global settings and thereby enable local [[ModRewrite mod_rewrite]] directives
Once [[ModRewrite mod_rewrite]] is enabled and if AllowOveride is on then you can use [[HtAccess .htaccess]] files in each subdirectory to overide the default global settings and thereby enable local [[ModRewrite mod_rewrite]] directives
Additions:
----
REFERRERS
{{backlinks}}
REFERRERS
{{backlinks}}
Additions:
===mod_rewrite===
See HtAccess
See HtAccess
Deletions:
Additions:
Assuming mod_rewrite is loaded and enabled then you need to change the global default "AllowOveride" setting in order for Apache
Deletions:
%%
# vi /etc/httpd/conf/httpd.conf
%%
and find the section beginning
%%
<Directory "/var/www/html">
Options Indexes FollowSymLinks
%%
change
%%
AllowOverride None
%%
to
%%
AllowOverride All
%%
%%
Order allow,deny
Allow from all
</Directory>
%%
save the file and then
%%
# service httpd restart
%%