301 redirect code on ACE WAF

Does anyone know if it is possible to setup a virtual web app on ACE WAF such that it would return a 301 code back to the client, and not send the request back to the internal destination server?
All I would need it to do is see the URI for the root of the site, and then send the 301. I would prefer to not do this on the backend server if I don't have to.
Thanks for any help.

There is a standalone ACE WAF being used in this situation (dual manager/gateway). There is no LB in front or behind and that's why I was asking.
We could of course do the 301 from the backend server, but I don't wanna. ;)

Similar Messages

  • Help with 301 redirect code - jsp in url

    I'm trying to set a 301 redirect in my jsp code (this is tomcat btw) using this:
    <%
    response.setContentType("text/html");
    response.setDateHeader("Expires", 0);
    response.setHeader("Location", "http://www.mysite.com/record/pleasehelpme /helpmeheretoo");
    response.setStatus(301);
    %>
    the pleasehelpme and helpmeheretoo need to use variable values i get from mysql which i would normally express in the application like
    <%=(((Recordset1_data = Recordset1.getObject("avariable"))==null || Recordset1.wasNull())?"":Recordset1_data)%>
    so what do i need to stick in those parts of the path in the url?
    it works great redirecting to a flat url but I need those variable (well, that's the point of this anyway).
    sticking the <%= recordset stuff %> is breaking since it's like a tag in a tag (i guess) - have tried variations on sticking println around (String)Recordset1.getObject("avariable") like
    "http://www.mysite.com/record/(out.println(String)Recordset1.getObject("avariable"))"
    and variations with curly braces and semicolons and everything but i keep getting
    Syntax error on token "avalue", invalid AssignmentOperator
    errors. (i'm obviously tring to figure out just one variable before i stick both in the path while i get this figured out).
    can someone hit me with a clue stick?

    And then finally I found a .php option (which I saved in my root directory)
    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.downtoearthlandscaping.ca/#!/page_Home");
    ?>
    I
    This works, does your server support php?
    You don't need:
    header("HTTP/1.1 301 Moved Permanently");
    Just this:
    <?php
    header("Location: http://www.downtoearthlandscaping.ca/#!/page_Home");
    ?>
    Saved as index.php
    The server will find index.php and the first page should be displayed.

  • Content managed 301 redirects

    I am trying to work out the best way to allow content authors to create and manage 301 redirects within the CMS. We are using GSF for friendly URLs, but they also want to be able to (for example) create a catchy URL to be distributed on print media that will redirect to an existing page within the site (or potentially to a page on an external site).
    I know that I cannot change the response headers in the JSP, and so am looking at the best way to do so within the existing software stack. The GSTAlias class appears to be almost what I need, but only supports 302 redirects, not 301.
    My current though is that I will implement a custom filter (which will compare the incoming URL against the list of redirects that it retrieves from WCS and send a 301 if needed) and insert it into the filter chain, but I was hoping to get some feedback on this and see if anyone had done this before or knew of a better way to do it.
    Cheers,
    Stephen

    Previously I've done redirects exactly like you, using a custom filter which was installed on the Satellite servers.
    My implementation ended being a bit more complicated since all code using friendly URLs had to be executed within a cached code block due to an earlier design decision. What I ended up with was a setup where the templates could generate some output that could be interpretted by the filter. Like #R#301#http://somepage.com# which the filter picked up. Unfortantely that approach required me to read through the output of the pages and add some caching to often requested URLs in order avoid parsing through the content again.
    If you have GSF on your site as well, you might have a look at com.fatwire.gst.foundation.httpstatus.HttpResponseStatusFilter which enables you to communicate status codes from the ContentServer. Note that proper redirects are not supported, or at least not implemented.
    Also this requires your code to make the decision in a XML based wrapper, since you cannot communicate response codes from JSP.
    If the requirements are quite simple, you can create a basic asset type containing the URL to match and where to redirect to and in your XML wrapper do a very simple sql lookup which should give you enough performance in order to have this executed in an un cached element. The SQL cache will save you for the common requested URLs.
    Please note, that if you are running remote satellite servers I am not quite sure how this will work, if they support handling other response codes and if they can handle additional information found in a 301 redirect.

  • 301 redirects and iWeb index page

    Our site has grown and we will be changing our domain name and hosting co. (We are keeping the old domain active for a while at MME before we change domain name and hosting) I will need to redirect traffic for a while so as not to lose those who have just bookmarked us. Will just redirecting on the index page that iWeb creates (post publish) do that without creating a mess of our page rankings at Google? Currently we are in the top 15 responses for our search terms. Or should i create some other type of redirect? 301? (via cname or htaccess) will that ding me at google? Thanks- try to keep it as simple as possible - I don't code - I experiment and Apple has made it easy.
    jy

    What I would do is purchase the hosting and see if you can have more than one add-on domain. Most web hosts let you do this on one account so it doesn't cost you any more money. You are doing this because you will need a .htaccess file to set up your 301 redirects properly. This is what you should do;
    1) Register your new domain and publish your site to it.
    2) Create a webmaster tools account for BOTH your old and new domain name.
    3) Create a 301 redirect for each individual page to the new corresponding page on your new domain. This can be done with a few lines in your .htaccess file. The file should be in your root folder of your OLD domain. Put this on your .htaccess file (NOTE: This assumes you will have the exact same website structure on the new domain);
    RewriteEngine ON
    RewriteRule ^(.*)$ http://mynewdomain.com/$1 \[R=301,L\]
    OPTIONAL: Use Google's canonical tag on each one of your pages to avoid any issues with duplicate content. Link the old page to it's new corresponding page. This is optional but recommended if you can;
    <link rel="canonical" href="http://www.newdomain.com/newpage.html" />
    4) Login to your Webmaster Tools account and select your OLD domain. Then select 'Site Configuration' and then 'change of address'. Follow the steps provided (which are basically what I told you above). Step 4 in there is the important one.
    5) Submit a sitemap for your new website. This will make sure you know when Google has indexed your new website.
    6) Important: Even though you have done everything properly there is a chance your rankings will change. To help prevent this, update as many third party links as you can to your new site. This won't be possible for all links since you won't have control over them but you should try contacting the website owners who have linked to you to update their links. You should also try getting new links to your new domain.
    You can find all the sites you have linked to you by logging into your webmaster tools account and clicking your OLD domain. Then go to 'Your site on the web' and then to 'Links to your site'.
    Nothing will be instant here, it will take a few days for everything to update but the above is the way Google recommends you do it.
    HTH

  • 301 redirect becomes 302

    I am attempting to perform a 301 redirect using the standard
    code:
    <cfheader statuscode="301" statustext="Moved
    Permanently">
    <cfheader name="Location" value="TheNewURL">
    The redirect occurs -- but the web server is interpreting it
    as a 302 instead. What could the problem be?

    Any thoughts on this? Am I doing something wrong?

  • 301 redirect shows as 302

    Hello,
    I'm trying to do a 301 redirect from one page to another
    using this code. But when I view the http headers, it's showing up
    as a 302 redirect. What's going on?
    Thanks.

    Any thoughts on this? Am I doing something wrong?

  • Question on 301 redirects

    In MX 7, I am attempting to do 301 redirects, using the
    attached code placed in application.cfc. The code works perfectly
    -- just as long as the files I'm attempting to redirect remain
    physically present. If they are removed or renamed, though, I get a
    404 error. If the redirected files can never go away, doesn't that
    partially negate the utility of a 301 redirect? Is there any way
    around this?

    I see what you're trying to do, but the 404 condition trips
    (I would think
    by the web server, even before the CF server is involved?)
    before the
    Application.cfc has a chance to do the 301.
    You should probbably define a 404 template that then palms
    processing off
    to your 301 template, as needs must.
    Adam

  • 301 redirects using .htaccess

    Hey Guys, I've got to redirect a couple of pages on a site for SEO and am not sure the best format to code it in. I've looked up a bunch of so-called tutorials and they all say what a 301 redirect does but nothing as far as how to code it....
    For example, the courses page on the site is not there anymore cause they are now selling through a third party sooooo
    www.bliqm.com/courses.html   ->   needs to redirect to   ->  www.bliqm.com/lss_blended.html
    How would I got about doing that???
    Thanks in advance!
    by the way the site is http://www.bliqm.com if needed.

    Here's a page that tell you how to add the .htaccess file.
    http://iweb.dailynews.webege.com/PHPparseerror.html
    On the image below you see what lines to add. Lines 6-8 are the ones you need :
    !http://iweb.dailynews.webege.com/Howto_publish_to_a_subdomain_with_iWeb_files/Smultronhtaccess.png!
    More info here :
    http://httpd.apache.org/docs/1.3/howto/htaccess.html

  • ADVICE needed --- use  301 Redirect or revert to HTM   from  HTML  ?

    Due to ignorance, I now have two versions of the same website online, the only difference being one is all HTM while the newer one is HTML
    The original was built using DW MX2004  with all pages having an HTM extension while DW CS5.5 has all pages with an HTML extension.
    Obviously I want to replace the old with the new but don't know how to.
    Should I use a 301 redirect in the new folder and upload it with the relevant details ie.  Redirect 301/index.htm http:// www.cumbria-dog-training.com/ index.html    OR   rename the new pages with an htm extension and hope that they've not been crawled yet ( they were uploaded 2 hours ago)
    I'd be very grateful for any good advice as I'm staring into a rather dark hole at the moment.
    Paull

    Hi
    Go into your dreamweaver preferences, (Edit - Preferences) and select the 'New Document' category, there you will see your default extension, change this to .htm and change any documents you have already created to the htm file type, (don't forget the dot before the htm file type).
    On new sites you create, I would recommend changing this preference back to html for those sites.
    PZ

  • Webmaster tools change of address 301 redirect failed using domain forward

    I'm having trouble with webmaster tools recognising our domain name change.
    We've recently updated website and done a name change from www.qldtshirt.com.au to www.qtco.com.au. I am using domain forwarding so qldtshirt.com.au forwards to qtco.com.au (aswell has with www.) and every thing works perfectly.
    www.qldtshirt.com.au/products/polo-shirts/cool-dry-fabric forwards to:
    http://www.qtco.com.au/products/clothing/polo-shirts/cool-dry-fabric
    We have about 4000 301 redirects setup in URL Redirects:
    /products/business-and-corporate/desk-and-office/100-organic-cotton-pencil-case to
    /products/gifts-incentives/desk-and-office/100-organic-cotton-pencil-case
    so on and so on....
    I've verified all sites in webmaster tools however when change of address from www.qldtshirt.com.au to www.qtco.com.au webmaster tools presents this error:
    "301 redirect failed. We detect that the root address of your old site (www.qldtshirt.com.au) does not yet redirect to the root address of your new site (www.qtco.com.au). For more information use the Fetch as Google tool."
    It works perfectly fine for the end user, anyone know why and how to fix please?

    Hi, I have found this same situation.  Did you have any luck finding a solution?
    Thank you

  • Firefox wont open page with a redirect code in it

    I'm using the following redirect code on my website to automatically redirect users on a mobile phone to my mobi site:
    <script type="text/javascript" src="http://216.139.224.162/Home/RedirectToMobile?url=http://mamotorworks.mobi"></script>
    This work fine on all browsers including firefox 3.6. but it won't open the web page in firefox 4.0.
    I get a pop up window asking me open this file with or save file.

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • 301 Redirections - Proper way to set up?

    Hi - I have an quick and hopefully easy 301 redirect question.
    Here is the duplicate title Notice from Webmaster Tools (and this is also showing duplicate content in SEOMoz).
    So obviously I need to do a 301 redirect.
    The top level menus on the site point to the /about version and not the index.html
    the /index.html is NOT the one I want to use for the 301 if possible - does anyone have a suggestion for how to accomplish this?
    Thanks!

    Have you just tried doing the basic issue there and changed title tags?
    Had someone ask this on the forums before and over complicating looking at 301's when they just changed names of items and page titles and fixed it
    Not sure what you mean about /about etc.
    If you have an about page you got several pages related to it? You have a dropdown menu? So you made a folder /about and the landing page index.html?
    If not and it is just one page and you did that you do not need to. /about as a page is all you need.
    You got to remeber that when  you post on the forums you see all your information and sites, we do not so you need to be detailed or exact in your posts so we can get to the same pooint as you in our heads

  • Redirect code to different css file for mobiles

    i need some code that i can use to detect mobiles and then change to a css file for the page so it looks good on mobiles. ive been looking around and i can only find redirect codes to mobile versions on websites and i dont want that, i want to stay on the same page but just use a different css file. Thanks to anyone that can help me.

    What you want are CSS Media Queries.  They can be incorporated into your main CSS file like so.  Feel free to adjust breakpoint values as required.
    /* Special Styles for Mobiles. */
    @media only screen and (max-width: 480px) {
        body { font-size: 75% }
    /* Special Styles for Tablets */
    @media only screen and (min-width: 481px) {
         body { font-size: 100%; }
    /* Special Styles for Desktops */
    @media only screen and (min-width: 1025px) {
         body { font-size: 135%; }
    Nancy O.

  • Am I supposed to 301 redirect expired product catalogs?

    Once a product catalog has expired, am I supposed to redirect that expired URL?  If so, where would I do that in the ABC system?  I understand how to do it to an actual html page, but I can find no information about what happens to a product catalog once it expires.

    Hi adobewonkenobe,
    If the catalog is expired user will get "Page not found" message.
    Every catalog in BC has a unique URL: Screenshot by Lightshot (check the URL after first /)
    Copy the URL and then you can create the 301 redirect by going to site manager > URL redirects > New URL redirect and you can put the URL as in following screenshot:
    http://prntscr.com/6uf90f
    Regards,
    Gaurav Aggarwal

  • Do I have to modify the nms perl script to understand a redirect code in DW cs4

    I am using DW cs4 and created a registration form on on my website that is hosted by 1and1. I am trying to use a custom "thank you" page after the user submits the form by using the redirect code in my form but i keep getting the ugly default "thank you" page gernerated by the formmail.pl script located on my cgi-bin folder. Do I need to modify the script? I let DW code for me and I used the full url of the custom thank you page I created with DW. I thought by coding with redirect the script would know what to do without needing a modification.
    Your help would be greatly appreciated.

    Hi Lapster,
    Sorry about the delayed response, but you can look at this document on Applying FieldPoint IAK Settings to a FieldPoint Real-Time Controller for some information on IAK files, and for your questions on IP settings, take a look at this document on Linking an IAK File to a Compact FieldPoint with a Different IP Address.
    I hope this helps.
    Regards,
    Stephen S.
    National Instruments
    Applications Engineering

Maybe you are looking for

  • What are the best coding technics which will avoid performance problems

    Hi Experts What are the best coding technics which are avoiding memory problems and performance problems Some times one of few reports are taking too much time to executing while handling large data. 1.What are the best way to declare a internal tabl

  • Creating new Attributes for use with AttributedStrings

    I trying to find a way to change the color of key strings in a phrase so that they stand out. For example. the String (The water is HOT). I want the word HOT to be the color RED. I have noticed in using the TextAttributes option on the AttributedStri

  • Cost element exclusion from CO report

    Hi all My users need a report for permit to marketing dep. to see their expenses directly. All is ok, (the cost center is only one) the problem is that they don't want they see the cost elements where are posted the labour costs  (salary, at example)

  • Why won't app appear on my IPad? It says I've already downloaded it?

    However, when I go to the App Store it shows that I need to download it via the iCloud but a message saying already purchased appears. Any help would be appreciated.

  • Cant open my games

    cant open my games in ipone4 game apps do not open - I touch them and they flicker but that's it!