[svlug] gotten myself in trouble with permalinks,
Kellner, Peter
Peter at PeterKellner.net
Mon Mar 27 10:40:51 PST 2006
Someone earlier (I can't find the message) said DreamHosts supports
rewrites. It like from there response to me this morning they don not.
------------------------------------------------------------------------
------
I am not certain what is wrong with your .htaccess file. We do allow
mod_rewrite in .htaccess files. I tried adding these lines "just in
case"
and it didn't do anything:
RewriteEngine On
RewriteBase /
Unfortunately we cannot troubleshoot directly problems with custom
rewrite rules, as they appear to be working overall.
Thanks!
Kelly
--
DreamHost Support Team
------------------------------------------------------------------------
------
It's not going to work. You are running into basic HTTP specs. The
?p24
or ?p=24 part is the QUERY_STRING part of a GET. Specifically, it is
not consider a part of the URI. The URI is
http://test.cyclohamster.com/ and the QUERY is ?p24.
Soooo... to make a long story short.
RewriteCond %{QUERY_STRING} ^p=24
RewriteRule ^.*$ /bearflag.jpg [R]
Those two lines is the basic rewrite recipe. You will need to add salt,
pepper and water to taste.
If you want a generic "p=SomeNumber", then it is something like this.
RewriteCond %{QUERY_STRING} ^p=\d+
RewriteRule ^.*$ /bearflag.jpg [R]
The only oddity I've noticed is that the recipe works fine _IN_ the
server httpd.conf, but does not work for me in .htaccess. I played with
it for a bit, but don't feel like spending a lot of time on making
.htaccess work.
I put in a lot of time taking them out of my site... so kinda waste of
effort to make them work again!
Cheers,
Tin Le
--
http://tin.le.org
Tin Le - tin at le.org
Firewall and Security Consulting
_______________________________________________
svlug mailing list
svlug at lists.svlug.org
http://lists.svlug.org/lists/listinfo/svlug
More information about the svlug
mailing list