HOT CSS
Free Beautiful Css templates, Web designer tricks from expert
Pages
(Move to ...)
Home
Tutorial
Css
jQuery
SEO
Opencart Expert
Woocommerce Expert
Wordpress Expert
Joomla Expert
▼
Showing posts with label
htaccess
.
Show all posts
Showing posts with label
htaccess
.
Show all posts
Monday, July 21, 2014
Htaccess show no_found picture if picture is not exist
›
RewriteEngine On RewriteCond %{REQUEST_URI} \.(jpg|jpeg|gif|png)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} ...
Monday, March 3, 2014
Redirect WWW / No-WWW htaccess
›
You should really be doing one or the other. For consistency, as well as SEO's, sake. Force the www. RewriteEngine On RewriteCond %{H...
Tutorial Use PHP inside JavaScript
›
This has only really been tested on Media Temple (gs) servers. In the folder with the JavaScript, the .htaccess file should include: <F...
Tutorial Temporary Maintenance using Mod_Rewrite
›
# Don't forget to turn on the rewrite engine RewriteEngine on # Maintenance Redirection # Replace 555\.555\.555\.555 with your own ...
Tutorial Subdirectories URL Internally Redirect to Query String
›
The URL in the browser would be: http://css-tricks.com/index.php/teachers/a/ The actual page rendered by the server would be: http://css-...
Tutorial Shock Teenage Gangsters with wp-config Redirect
›
Funny email from a reader, that I figured would make a good post: This is a funny redirect. I get one or two visits a day from teenage gang...
Tutorial Set Expires
›
Setting "expires" tells browsers downloading these files that they don't need to request it again for this specific length of ...
Tutorial Serve SVG with the Correct Content Type
›
If you are trying to use SVG like <img src="image.svg"> or as a CSS background-image , and the file is linked to correctly ...
Tutorial Remove File Extention from URLs
›
RewriteRule ^about$ about.php [L] That little bit will make http://example.com/about.php be able to load at http://example.com/about
Tutorial Prevent Image Hotlinking
›
RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourdomain\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpg|g...
Tutorial PHP Error Logging
›
Log errors to a file, and prevent showing them to the user. Make sure that the file exists and youre able to write to it. # display no errs...
Tutorial Password Protect Folder(s)
›
Put in .htaccess file in the directory you are trying to protect: AuthType Basic AuthName "This Area is Password Protected" Aut...
Tutorial iPhone Catcher
›
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_USER_AGENT} .*iPhone.* RewriteRule ^index\.html$ http://www.mobile.myd...
Tutorial iPad Detection
›
Of course, the iPad is a pretty large screen and a fully capable browser, so most websites don't need to have iPad specific versions of ...
Tutorial Get The Dreamhost Stats Page Working on a WordPress Site
›
For websites hosted with Dreamhost, you have an analytics page by default at yoursite.tld/stats/. WordPress can interfere with this, thinki...
Tutorial Force Files to Download (Not Open in Browser)
›
AddType application/octet-stream .csv AddType application/octet-stream .xls AddType application/octet-stream .doc AddType application/oct...
Tutorial Force Favicon Requests to Correct Location
›
For whatever crazy reason, perhaps evil-doing site scanners, requets to a web server for a favicon in all known crevasses of the site are fa...
Tutorial Force Correct content-type for XHTML Documents
›
Most webservers serve XHTML content as text/html what is definitly the right way to handle XHTML documents. In case the server isn't doi...
Tutorial Force charset utf-8
›
If you can not change the configuration of Apache server, use this code to force decoding of page to utf-8. AddDefaultCharset utf-8 ...
Tutorial Fancy Indexing
›
Adds fixed width fonts, file size and date, sort capability. Propagates to higher level directories. See example . IndexOptions FancyIndexi...
›
Home
View web version