Mike Neir's Page[ignignokt][err]
Mike thinks that five-day work weeks are for the birds. (2 days ago)
Viewing 2 posts tagged with 'mod_rewrite'
(Oldest First :: Newest First)
Show related: tags

Smoke and Mirrors

Sunday, March 26 2006, 8:52 PM

This weekend I worked on my site a bit too much. I worked on three things primarily. First off, I changed the way the nested comments look in each of the content detail pages. I nixed the plain unordered lists, and made a nifty effect with nested DIVs. I think it looks pretty neat, and it doesn't use up as much real estate either.

Secondly, I updated the links page so that it includes RSS data for any sites I've configured to do so. It's somewhat similar to what I've got going on in the menu bar of the site, but there are many more sites in the links page.

Thirdly, I changed around the link structure of the site to look a little more friendly. Before there were many pages abound in the form of "/weblog.php?CategoryID=1" or "/contentdetail.php?ContentID=450", and so on. Now they're cleaned up in the form of "/weblog/ramblings" or "/weblog/450", to use the previous examples. It doesn't really affect all that much, but it's something I've been meaning to do for a while.

Tags:

Redirect HTTP to HTTPS

Sunday, March 13 2005, 8:56 PM

Since I don't post enough of these little tips and tricks (and because I looked for this one for like an hour last night on some customer's site I had done this for), I'm going to start posting more nifty tips. This is a mod_rewrite rule for Apache that will take any request on normal http and redirect it to the corresponding https page. Pretty handy for stuff like online shopping carts.

RewriteEngine on
RewriteCond %{SERVER_PORT} !443 [NC]
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

Tags:

Related Tags

        


RSS Feed | Comments RSS Feed | Valid HTML 4.01 | Valid CSS
Memcache: Hits: 27 Misses: 2 Updates: 2 Deletes: 0 LocalHits: 5 Time: 0.0079
MySQL: Selects: 7 Inserts: 4 Updates: 0 Deletes: 0 Time: 1.9343
Page Render Time: 2.0959 seconds