|
Viewing 2 posts tagged with 'mod_rewrite' (Oldest First :: Newest First) Show related: tags |
|
Smoke and Mirrors
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.
Redirect HTTP to HTTPS
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]
Related Tags
|