NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
mod_rewrite (Score:2)
Security through obscurity isn't. Always check user input in your CGI script, even if yo
Re:mod_rewrite (Score:1)
I must first admit that while I'm proudly at least somewhat of a geek, I'm a perl-idiot. I know enough to upload my perl cgi scripts with the right permission, and that's about it. And as far as
That said, I humbly ask for your kind help.
I run the site smilezone.com, and I just started up a blog at blog.smilezone.com. Everything's been relatively hunky dory since I discovered and implemented this in my
---
RewriteEngine On
Options +FollowSymlinks
RewriteBase
RewriteCond %{HTTP_HOST} blog.smilezone.com
RewriteCond %{REQUEST_URI} !blog/
RewriteRule ^(.*)$ blog/$1 [L]
---
This works fine, except for two problems:
1) It doesn't protect against people accessing my blog incorrectly via smilezone.com/blog
2) If someone goes to blog.smilezone.com/tips (without the trailing slash), they're transported to www.smilezone.com/blog/tips/
So this evening, I stumbled upon your
It redirects blog.smilezone.com to blog.smilezone.com/blog/, when I don't want the last blog there.
Thanks so much in advance for any advice you can offer
Regards,
Adam
Reply to This
Parent