On Mon, Aug 10, 2009 at 8:38 PM, Eric Covener wrote:
>> RewriteRule ^blog/view\?blogId=(\d+) http://illinois.edu/db/view/$1 [R=301]
>
> You can't match a query string like that. You have to use a RewriteCond.
Like this:
RewriteCond %{QUERY_STRING} blogid=(\d+)
RewriteRule /blog/view/
> RewriteRule ^blog/view\?blogId=(\d+) http://illinois.edu/db/view/$1 [R=301]
You can't match a query string like that. You have to use a RewriteCond.
--
Eric Covener
cove...@gmail.com
-
The official User-To-User support forum
2009/8/10 Jonathan Zuckerman :
> Ah dammit, obvious mistake, this is better:
> RewriteRule ^blog/view\?blogId=(\d+) http://illinois.edu/db/view/$1 [R=301]
But it won't work, because the query string is not part of the string
which is tested in your rule-pattern. As the docs states, you'll need
a R
On Mon, Aug 10, 2009 at 11:02 AM, Jonathan
Zuckerman wrote:
> On Mon, Aug 10, 2009 at 8:51 AM, Campbell, Lance wrote:
>> https://illinois.edu/blog/view?blogId=291
>>
>> To
>>
>> http://illinois.edu/db/view/291
>
> I think you want something like this:
>
> RewriteRule ^blog/view\?blogId=(\d)+ http:/
On Mon, Aug 10, 2009 at 8:51 AM, Campbell, Lance wrote:
> https://illinois.edu/blog/view?blogId=291
>
> To
>
> http://illinois.edu/db/view/291
I think you want something like this:
RewriteRule ^blog/view\?blogId=(\d)+ http://illinois.edu/db/view/$1 [R=301]
Totally untested, it's been awhile but
I need to redirect:
https://illinois.edu/blog/view?blogId=291
To
http://illinois.edu/db/view/291
The key is that 291 may be any number in both the from and to URLs.
Can someone point me in the proper direction on how to redirect these
types of URLs?
Thanks,
Lance Campbell
Project Manager/So