Welcome To Snipplr


Everyone's Recent Snippets Tagged htaccess



1 ... 5 6 7 8 9
This is to prevent duplicate content when your provider directs your http://domain.com to the same place as http://www.domain.com
1 1217 posted 16 years ago by zartgesotten
1 1070 posted 16 years ago by dennyhalim
2 1118 posted 16 years ago by dennyhalim
long htaccess expired header for all files except for server side scripts
2 1728 posted 16 years ago by dennyhalim
1 1130 posted 16 years ago by sveggiani
Just insert it into your .htaccess file to redirect all your 404 error pages to any address
2 1300 posted 16 years ago by caruso_g
In MODx, insert below: # The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
2 1252 posted 16 years ago by hotdiggity
My [original post](http://drupal.org/node/84895) languished for years before someone pointed out a possible solution [here](http://drupal.org/node/53705). The following user-submitted code may be useful in redirecting URLs for the /files directory...
0 1225 posted 16 years ago by zachharkey
This is a little trick I've used a few times to emulate Folders on a site and drop the extensions. In this example I'm using a PHP site but could easily be ported for other file types. One caveat to look out for is files will not always want to be ca...
1 998 posted 16 years ago by jackkeller
Increases the memory limit of php and html files.
4 1930 posted 16 years ago by zachharkey
3 1701 posted 16 years ago by erik
SESSIONNAME = Name of your session cookie; example.com = Domainname of your site
1 1072 posted 16 years ago by HeWo42
This is a replacement for the default PHP settings in Drupal's .htaccess file. Increasing the memory_limit, max_post_size etc. prevents a lot of errors, especially when using image modules.
0 1245 posted 16 years ago by zachharkey
1 1251 posted 16 years ago by sveggiani
For expression engine, I placed with with the main set of .htaccess rules in the root
1 1351 posted 16 years ago by joeymarchy
Please, be careful with trailing slash rewrite as post requests without a trailing slash will be ignored. Be sure to test if you plan on using that one. Not compatible with Drupal.
0 1214 posted 16 years ago by troynt
canonical redirect at .htaccess
0 2444 posted 16 years ago by kossmoss
Le hotlinking d'image consiste selon wikipédia : "à utiliser l'adresse d'un fichier publié sur un site web, le plus souvent une image, pour l'afficher sur un autre site, sur un blog, dans un forum, etc. En d'autres termes, au lieu d'enregistrer l'...
0 967 posted 17 years ago by sebus
1 1126 posted 17 years ago by endorfin
write this in your .htaccess links are going to look like this yourpage.de/yourVariableValue1/yourVariableValue2/ [NC] will remove the case sensitivity of your static words like "admin" its going to work, even if you type yourpage.de/a...
2 1355 posted 17 years ago by antpaw
Magic Quotes is a great feature of PHP but sometimes it can just get annoying. It's simple enough to turn it off at the .ini and restart apache but here's a quick .htaccess workaround
2 1580 posted 17 years ago by aristoworks
This is good to add to folders which are chmod to 777.
1 1374 posted 17 years ago by luizlopes
3 1636 posted 17 years ago by johnloy
1 1116 posted 17 years ago by bpj1966
1 ... 5 6 7 8 9