• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

redirect http all

I have hardware namd Netcache c1105


I want all http webside redirect to google.com , how I do that
now i write this comment in netcache c1105
http://www.yahoo.com http://www.brusknet.net
page yahoo.com redirect to google.com but  how I let all webside redirect to google.com ?



this below it is help that give from  Netcache but for 1 site

URLs to Rewrite

[Default: None]
[CLI option: config.http.rewrite_uri.prefix]

Transparently redirects requests for URLs to local mirror sites that you specify.

To use this option, specify the URL for which you want to redirect requests and the URL to which the requests should be redirected.
Examples

    Example 1: This example illustrates an entry that causes the appliance to redirect requests for an entire site.

    http://www.theirsite.com http://www.yourdomain.com/netcache

    The appliance will redirect a request for "www.theirsite.com" to "www.yourdomain.com/netcache."

    The appliance will also redirect requests for "www.theirsite.com/products" to "www.yourdomain.com/netcache/products."

    Example 2: This example illustrates an entry that causes the appliance to redirect requests for only part of a site:

    http://www.theirsite.com/docs http://www.yourdomain.com/netcache_docs

    The appliance will redirect a request for "www.theirsite.com/docs/theirdoc.html" to "www.yourdomain.com/netcache_docs/theirdoc.html."
0
memo12345678
Asked:
memo12345678
1 Solution
 
AmickCommented:
I do not have a Netcache to test this with, but Netcache does support regular-expression based filtering.  Have you tried using a suitable regular expression?

Such a rule may look like this:
^http:*$ http://www.google.com

Open in new window

0
 
memo12345678Author Commented:
good
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now