IndianWebPortal.com

Something Different In Linux

Home » cpanel » Create your own Apache Rewrite Log file

Create your own Apache Rewrite Log file

Posted by Rishikesh Vispute Categories: cpanel, htaccess

How to Create your own Apache Rewrite Log file ?

If your account is hosted on suexec server then you need to add this code in http.conf file otherwise you can enable it by using .htaccess file.

By using  http.conf file

You need to
=============================
# Roll your own Rewrite log
# Log details via scale of 1 to 9
# 1 = few details, 5 = enough details, 9 = too much detail

RewriteEngine On
RewriteLog “/home/username/public_html/rewrite.log”
RewriteLogLevel 5
=============================

By using  .htaccess file

============================
# Roll your own Rewrite log
# Log details via scale of 1 to 9
# 1 = few details, 5 = enough details, 9 = too much detail
RewriteEngine On
RewriteLog “/home/username/public_html/rewrite.log”
RewriteLogLevel 5
=============================

Note : Replace the absolute path for rewrite.log file.


Popular Posts

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

Set expiration for y

If you want to set the expiration to your site ...

domain pointing to e

If you domain uses external MX record and it is ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...