httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob <bobnli...@gmail.com>
Subject Re: [users@httpd] .htaccess and query string
Date Wed, 30 Jul 2014 13:45:45 GMT
On Wed, 30 Jul 2014 09:34:19 -0400
Eric Covener <covener@gmail.com> wrote:

> On Wed, Jul 30, 2014 at 9:25 AM, Bob <bobnlinux@gmail.com> wrote:
> >> RewriteRule ^/$  http://domain/sitemap.xml [R=301,L]
> 
> wrong for htaccess.  Try ^$
> 

Dear Eric,

many many thanks for the clue :-)
the URL has modified with  http://domain/sitemap.xmleID=dd_googlesitemap&L=0

and then I modified the rule as ( with ? at last)

RewriteRule ^/$  http://domain/sitemap.xml? [R=301,L]
and it is working perfectly...

Also thanks to Roman for his solution which is the foundation rule set :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message