Re: Problems with an extra Rewrite Rule before a RewriteCond

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/1/07, thomas Armstrong <tarmstrong@xxxxxxxxx> wrote:
Thank you everybody.

However I'm still gettint the same odd effect. I tried:
RewriteRule ^faq index.php?page_id=119 [R,L] ---> it doesn't mask the URL
RewriteRule ^faq index.php?page_id=119 [R,TP] --> Internal server error
RewriteRule ^faq index.php?page_id=119 --> it's caught by index.php, I suppose

As you've been told repeatedly, you can't use "R" if you don't want
the browser to see the new URL.

So the only one of those that makes any sense at all is the last one.
But what the heck does "It's caught by index.php" mean? Isn't that the
idea? What exactly happens?


I also tried by editting it on 'httpd.conf':
RewriteRule http://myblog.com/faq http://myblog.com/index.php?page_id=119 [R,L]

That's a garbage config. Where did you get that from. Something closer would be
RewriteRule ^/faq /index.php?page_id=119 [L]
and perhaps better
RewriteRule ^/faq /full/path/to/index.php?page_id=119 [L]

If you still can't get it to work, you MUST use the RewriteLog to
debug your problems. Using mod_rewrite with the RewriteLog is just
flailing in the dark.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux