I just bought a new Mac and upgraded MAMP. I'm now using the following versions:
Apache 2.2.21, PHP 5.3.6, MySQL 5.5.9
These are the versions I used previously:
Apache 2.0.59, PHP 4.4.7, MySQL 5.0.41
Can anyone tell me how I should update my .htaccess files?
Below is an example of my files. This particular example is a little unusual in that the website's home page itself functions as a dynamic page. In other words, there are About and Topics sections (MySite/About, MySite/Topics) with dynamic pages (e.g. MySite/Topics/Roses), but dynamic pages can also be displayed off the home page (e.g. MySite/Planets, MySite/Stars).
I should also add that I prefer that trailing slashes NOT be displayed. It causes some confusion in my stats, where I get so many hits for Topics/Roses and so many hits for Topics/Roses/. I'd like to direct all the traffic to Topics/Roses.
If you see anything else I should change (or add) I'm all ears (or eyes).
# Add /? before first $ in every row if you want optional trailing slashes.
RewriteRule ^test\\.htm$ test.php [L]
# php_value magic_quotes_gpc 0
php_flag magic_quotes_gpc Off
RewriteRule ^About/([a-zA-Z0-9()_/-]+)/?$ About/index.php?bout=$1 [L]
RewriteRule ^Topics/([a-zA-Z0-9()_/-]+)/?$ Topics/index.php?topic=$1 [L]
RewriteRule ^/?([-a-zA-Z0-9_/]+)/?$ /index.php?area=$1 [L]