URL Redirect 301

View: New views
2 Messages — Rating Filter:   Alert me  

URL Redirect 301

by dhoma.mahipal@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Please help me out with the below scenario.

1. We have a new started e-commerce portal where the URL's are indexed by Google. Google has indexed the URL's and the URL looks like

     http://www.examplecom/product/test-application-java/p123456789

     Now we need to do a 301 permanent redirect to

      http://www.examplecom/books/test-application-java/p123456789

We are using Apache with Tomcat (URL Rewriting). Please help me out with this scenario where we should not loose the indexed URL's.

Thanks in Advance.

Regards,
Mahi



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "UrlRewrite" group.
To post to this group, send email to urlrewrite@...
To unsubscribe from this group, send email to urlrewrite+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: URL Redirect 301

by Avlesh Singh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It can't get simpler than this. I would recommend going through the manual in future (http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/index.html) before asking questions on the mailing list.

The rule underneath in your urlrewrite.xml file should do the trick -
<rule>
  <from>/product/test-
application-java/(.*)</from>
  <to type="permanent-redirect">/books/test-application-java/$1</to>
</rule>

Cheers
Avlesh

On Tue, Nov 3, 2009 at 3:17 PM, Mahipal Dhoma <dhoma.mahipal@...> wrote:
Hi,

Please help me out with the below scenario.

1. We have a new started e-commerce portal where the URL's are indexed by Google. Google has indexed the URL's and the URL looks like

     http://www.examplecom/product/test-application-java/p123456789

     Now we need to do a 301 permanent redirect to

      http://www.examplecom/books/test-application-java/p123456789

We are using Apache with Tomcat (URL Rewriting). Please help me out with this scenario where we should not loose the indexed URL's.

Thanks in Advance.

Regards,
Mahi




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "UrlRewrite" group.
To post to this group, send email to urlrewrite@...
To unsubscribe from this group, send email to urlrewrite+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en
-~----------~----~----~----~------~----~------~--~---