index.asp to /home if query_string empty
2 posts
• Page 1 of 1
- Translating-IT
- Posts: 32
- Joined: 14 Apr 2012, 07:28
index.asp to /home if query_string empty
Hi,
it might be a very easy issue but I cannot get it working:
what rule do I need to set up to send www.domain.com/index.asp to www.domain.com/home
the rule should only fire if there is nothing appended to index.asp like index.asp?a=1, so in fact if {query_string} is empty.
I tried this and many other possibilities to no avail:
Thx for the help,
Pascal
it might be a very easy issue but I cannot get it working:
what rule do I need to set up to send www.domain.com/index.asp to www.domain.com/home
the rule should only fire if there is nothing appended to index.asp like index.asp?a=1, so in fact if {query_string} is empty.
I tried this and many other possibilities to no avail:
- Code: Select all
RewriteCond %{REQUEST_URI} ^/index\.asp$ [NC]
RewriteCond %{QUERY_STRING} ^$ [NC]
RewriteRule ^/$ home [NC,R=301,L]
Thx for the help,
Pascal
- Translating-IT
- Posts: 32
- Joined: 14 Apr 2012, 07:28
Re: index.asp to /home if query_string empty
doh...
- Code: Select all
RewriteCond %{QUERY_STRING} ^$ [NC]
RewriteRule ^index\.asp$ /home [NC,R=301,L]
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests