Welcome To Snipplr
Everyone's Recent Snippets Tagged htaccess
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
you'll need this .htaccess file also
RewriteEngine On
RewriteBase /
RewriteRule .* - [E=INFO_API_VERSION:%{API_VERSION},NE]
RewriteRule .* - [E=INFO_AUTH_TYPE:%{AUTH_TYPE},NE]
RewriteRule .* - [E=INFO_CONTENT_LENGTH:%{CONTENT_LENGTH},NE]
Rewrit...
2
985
posted 14 years ago by jessecary
Use this rewrite rule to enable permalinks on a host. Used when Wordpress doesn't write the conditions correctly (like on a host I am testing with).
0
818
posted 14 years ago by jink
Before taking a site "live", I password protect it except the robots.txt for search engines and custom Error pages. You can adapt this to your own use and add other pages in the FilesMatch directive.
0
718
posted 14 years ago by abbey
To force the user to download certain filetypes in the current directory.
0
1027
posted 14 years ago by darylclaudio
If you want to force someone to download a file instead of opening it in their browser, use this code.
1
1197
posted 14 years ago by jrobinsonc
Esto setea todas las opciones menos *Indexes* que es la que permite que los ficheros y directorios sean mostrados cuando no hay un *index.html* en un directorio.
0
614
posted 14 years ago by jrobinsonc
Redirect to a subfolder (blog) in a search engine friendly way using .htaccess. Change “YourDomain.com†to your domain name.
1
911
posted 14 years ago by math89
Redirects visitors of a webpage to a specific URL while allowing access for specified IP-addresses.
3
751
posted 15 years ago by dertimbo
Needed to retire a staging domain, so I'm redirected all traffic to the equivalent page in the root directory in the .htaccess file
1
814
posted 15 years ago by canarymason