How to create date wise apache error log and access log
By default apache write the access log and error log in the single file. Later it grow in sizes over days and then when you have to debug you find…
By default apache write the access log and error log in the single file. Later it grow in sizes over days and then when you have to debug you find…
<FilesMatch “\.(ttf|otf|eot|woff|js|css|woff2)$”> # Type all extenstion that you want to allow <IfModule mod_headers.c> Header Set Access-Control-Allow-Origin “*” </IfModule> </FilesMatch> Vinod RamVinod Ram has been in Software Industry since 2006 and…
Use “Command”+”Shift”+”.(dot)” to enable display of hidden files To hide just press the above three button again. Vinod RamVinod Ram has been in Software Industry since 2006 and has experience…
If your site is developed in Drupal and your URL looks like this: If your site URL looks like this: http:///~/anyFolder/ Example http://example.com/~xyzaccount/somefolder/ http://xxx.xxx.xxx.xxx/~xyzaccount/somefolder/ Then you need to set RewriteBase!in…
RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don’t put www. here. If it is already there it will be included, if not # the subsequent rule will catch…
Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(+)$ $1.php Vinod RamVinod Ram has been in Software Industry since 2006 and has experience of over 16 years in Software Development…
Options +FollowSymLinks RewriteEngine on RewriteCond %{filename.php} !-d RewriteRule ^(+)$ $1.php Vinod RamVinod Ram has been in Software Industry since 2006 and has experience of over 16 years in Software Development…
Your symfony project derectory is “/var/www/html/sf_sandbox” so in the browser you can acess this by this URL : “http://localhost/sf_sandbox/web/frontend.php/” So if you want to map the symfony project directoy to…
Open the .htaccess file of your root directory of your project and add the following line. RewriteEngine On RewriteCond %{HTTP_HOST} !^http://someDomainName.com RewriteCond %{HTTP_HOST} !^http://www.someDomainName.com RewriteCond %{HTTP_HOST} !^$ RewriteCond %{REQUEST_URI} !^/someOtherDirectory/…