[us...@httpd] RewriteRule help please

2009-11-23 Thread bearsfoot
Hi All, I have the following rewrite rule .. RewriteRule products/specials(.*)(.*) /products/index.php?view=specials$1=$2 [L] http://www.mysite.com/products/specialsfilter=20 -- http://www.mysite.com/products/index.php?view=specialsfilter=20= The problem is the trailing '=' I have also

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread Philip Wigg
I have the following rewrite rule .. RewriteRule products/specials(.*)(.*) /products/index.php?view=specials$1=$2 [L] http://www.mysite.com/products/specialsfilter=20 -- http://www.mysite.com/products/index.php?view=specialsfilter=20= The problem is the trailing '=' I have also tried

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread bearsfoot
Hi Phil, Thanks for the reply. I changed the rule to use a single (.*) but the result was the same. Here is an example of the url entered .. http://www.mysite.com/products/specialsfilter=20 and expecting http://www.mysite.com/products/index.php?view=specialsfilter=20 RewriteRule

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread Philip Wigg
RewriteRule products/specials(.*) /products/index.php?view=specials$1=$2 [L] The rewritten url is close but still has the trailing '='. What you've put there is different to what I suggested, since you've kept the =$2 at the end. I still have a feeling this won't be totally what you need

Re: [us...@httpd] RewriteRule help please

2009-11-23 Thread bearsfoot
Thanks Phil. You just fixed my issue. Much appreciated. Philip Wigg wrote: RewriteRule products/specials(.*) /products/index.php?view=specials$1=$2 [L] The rewritten url is close but still has the trailing '='. What you've put there is different to what I suggested, since you've

[us...@httpd] rewriterule help

2009-09-02 Thread Andrew Hole
Hi guys! The following directive doesn't take into consideration the filename in URL: RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f In this request the REQUEST_FILENAME has the value: /bin/adt/file.swf but I just want the filename (file.swf). How can I do that? Thanks a lot RewriteCond

Re: [us...@httpd] rewriterule help

2009-09-02 Thread Krist van Besien
On Wed, Sep 2, 2009 at 12:02 PM, Andrew Holeandremailingl...@gmail.com wrote: Hi guys! The following directive doesn't take into consideration the filename in URL:   RewriteCond %{DOCUMENT_ROOT}/bin/core/%1 -f    RewriteCond %{REQUEST_FILENAME} !-f    RewriteCond

Re: [us...@httpd] rewriterule help

2009-09-02 Thread Krist van Besien
On Wed, Sep 2, 2009 at 1:15 PM, Andrew Holeandremailingl...@gmail.com wrote: It works. However, i'm getting a popup with file save option and I would like to see the page on Browser. That is probably due to an incorrect content type header. Have a look at what the server sends with an