htaccess rewrite

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Posts Tagged ‘htaccess rewrite’

Crazy Advanced Mod_Rewrite Debug Tutorial

Friday, September 11th, 2009

Note: Extremely ILL Content
Find the key to unlocking mod_rewrite and you WILL be sick.. sick with a diamond disease on your wrist!


Advanced Htaccess Demo/Example using Cookies, Headers, Rewrites

Tuesday, March 31st, 2009

Whoa pretty sweet huh? Bet you’ve never seen that before! As I explain the htaccess code that achieves this, keep in mind this is merely one simple application for this code. It’s much more advanced than your basic htaccess trick, notice how this htaccess acts like a php script, very unusual.. I really wanted to share this trick after I created it for one of my clients because this is the tip of the iceberg. Another use would be to display an alternate style sheet depending on a users theme preference. The coolest thing about this example IMHO is that it uses multiple advanced .htaccess ideas in order for it to work, most htaccess code on the net is very singular. This code uses mod_headers to set the Content-Disposition header for forcing a download and uses mod_rewrite to do the rest.


Advanced Htaccess – SSI, ErrorDocuments, DirectoryIndexing SEO

Monday, March 9th, 2009

htaccess directory indexingErrorDocument from .htaccess3-Part article covering practical implementation of 3 advanced .htaccess features. Discover an easy way to boost your SEO the AskApache way (focus on visitors), a tip you might keep and use for life. Get some cool security tricks to use against spammers, crackers, and other nefarious sorts. Take your site’s error handling to the next level, enhanced ErrorDocuments that go beyond 404′s.




Mod_Rewrite Variables Cheatsheet

Thursday, September 25th, 2008

We’ve figured out what mod_rewrite variables look like, a cheatsheet of the actual value.


Smart HTTP and HTTPS .htaccess Rewrite

Tuesday, April 29th, 2008

This is freaking sweet if you use SSL I promise you! Basically instead of having to check for HTTPS using a RewriteCond %{HTTPS} =on for every redirect that can be either HTTP or HTTPS, I set an environment variable once with the value “http” or “https” if HTTP or HTTPS is being used for that request, and use that env variable in the RewriteRule.




.htaccess mod_rewrite rewrite examples

Saturday, February 9th, 2008

A hit-list of some of my favorite mod_rewrite code snippets for .htaccess files


Redirect index.php to root

Thursday, August 9th, 2007

WordPress blogs show the same duplicate content for http://www.askapache.com/index.php and http://www.askapache.com/. If you’ve read about using a robots.txt file for WordPress SEO, than you already understand this setup results in Duplicate Content penalties being levied against your Blog and Web Site by Search Engines.


htaccess rewrite, htaccess

Tuesday, April 3rd, 2007

Comprehensive .htaccess example file with advanced examples in 1 htaccess sample skeleton .htaccess file with the very best apache htaccess examples… Updated frequently based on detailed info from the Apache htaccess tutorial.


Using TIME_HOUR and TIME_MIN for htaccess RewriteCond

Saturday, January 6th, 2007

If you want to redirect to a different version of a file based on the time, this code is for you! Please read: Serve Alternate Content based on Time



It's very simple - you read the protocol and write the code. -Bill Joy

HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service

↑ TOP
Main