Change Time Zone with htaccess

In my server there are some sites from Turkey, some of from England, some of from Germany. I have got timezone problem in that sites. I found easy solution for this. Just add .htaccess this code: or You can test date is change or not If htaccess can’t solve your problem, add this code to …

Continue reading

htaccess Tips, Tricks and Guide

I like .htaccess file, when i need anything that file help me. I collect htaccess tips, tricks and guide list from PerishablePress. I hope you’ll be enjoy. Stupid htaccess Tricks Better Default Directory Views with HTAccess WordPress Feedburner HTAccess Redirect for Default (Non-Permalink) Feed URLs Redirecting Subdirectories to the Root Directory via HTAccess Redirect All …

Continue reading

Image Directory Security with htaccess

Some hackers or attackers try to upload script files in image upload files and they can see and change your files with that script. You can block this type file in that directories. You can forbidden type of files and close execution of CGI. .htaccess From: http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec16

Continue reading

Watermark All Uploaded Images in WordPress

I need a code for watermarked all uploaded images in wordpress. I google it, and i find a solution in WP Glamour. You only add this codes and all of your upload images are watermarked. This very easy solution for watermark your images. Because if you try to add watermark with PhotoShop or another image …

Continue reading

Protect Image From Other Sites

Sometimes other sites use our images, but there is no link us. Only it is fill our bandwidth limit. We can ban that users or we can show another image for that sites. You can write that image “This images can download in www.domain.com”. You have to add this codes to .htaccess Change domain with …

Continue reading

Deny Directory Listing in .htaccess

Some webmasters upload a blank index.html for dont index directories. Thats a way of listing directories. But htaccess is more easier solution for this. Just add this code to your .htaccess file Allow directory index, remove the that code or change If you want to list files in directory, but except some of filetypes. Example …

Continue reading

FeedBurner HtAccess Redirect for WordPress Feeds

Firstly, we burn our wordpress feeds to FeedBurner. You can burn in www.feedburner.com , we get a feedburner link like “http://feeds2.feedburner.com/WebmasterSucks“. I also burned comments feed. We redirect our WordPress feed to FeedBurner. Its help us to track our feed and add adsense code to our feeds. <IfModule mod_rewrite.c>  RewriteEngine on  RewriteCond %{REQUEST_URI}      ^/?(feed.*|comments.*)        [NC] …

Continue reading