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.

Similar Messages

  • 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

  • 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

  • 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

  • Htaccess 404 and 301 redirect

    I have a muse website hosted on windows azure.
    I have created a .htaccess file and added o the root.
    The webpage is still not redirecting to the 404 error page or my 301 redirect that i have set

    Hi Kurian,
    You can Go to Server Settings>>Settings>> Missing Template Handler and setup the same.
    To use the missing template handler with IIS, the Custom Error page of your website must be configured to use the page. For this example, we'll assume a directory name of /errorpages and a file named missingtemplate.cfm. Therefore, the path to the missing template handler will be /errorpages/missingtemplate.cfm.
    The steps below explain how to configure IIS to use the template for the Custom Error page:
    1.          Right-click on the website in the IIS Management Console, then select Properties.
    2.          Select the Custom Errors tab.
    3.          Select the 404 in the HTTP Error column and click Edit Properties...
    4.          Select URL from the Message type dropdown and enter /errors/missingtemplate.cfm in the URL text box.
    5.          Click OK.
    6.          Right-click on the website again and select Properties.
    7.          Select the Home Directory tab and click the Configuration... button.
    8.          Select .cfm from the list and click the Edit button.
    9.          Check the "Check that file exists" checkbox.
    10.          Restart IIS and the ColdFusion Server.
    Regards,
    Anit Kumar

  • 301 Redirect

    I have a few years of Dreamweaver design experience and am
    fairly well versed in html, css, etc. However, I have never had to
    create a 301 redirect. I have purchased a .com and .org for a
    non-profit site I am building and therefore, would like anyone who
    types in the .com to be redirected to the .org. Any advice would be
    greatly appreciated.

    .oO(PeteC)
    >cabett wrote:
    >> I have a few years of Dreamweaver design experience
    and am fairly
    >> well versed in html, css, etc. However, I have never
    had to create a
    >> 301 redirect. I have purchased a .com and .org for a
    non-profit site
    >> I am building and therefore, would like anyone who
    types in the .com
    >> to be redirected to the .org. Any advice would be
    greatly appreciated.
    >
    >Best to do that with a DNS alias - talk to your host.
    No. That would lead to duplicate content. A 301 is the
    correct way to
    handle such things. On Apaches all it needs is a simple
    directive in a
    .htaccess file on the .com site (assuming that both sites are
    hosted on
    different servers or at least on different vhosts):
    RedirectPermanent /
    http://example.org/
    If both domains resolve to the same server and the same
    directory, then
    it might require mod_rewrite to make sure that the redirect
    is only
    triggered when the .com is requested.
    Micha

  • "Canonical Issue" and 301 Redirecting?

    Hi.
    A SEO optimisation company has pointed out that our site
    doesn't have a 301
    Redirect which they state is required to avoid a "canonical
    issue" with the
    http://domain.com and
    http://www.domain.com addresses
    for our site. Out
    host allows both to act as the address for the site but the
    SEO company are
    suggesting that this could lead to "duplicate penalties" with
    Google?
    I've never heard of this, can anyone shed any light on it, or
    confirm/contest what the SEO are telling us?
    If it is so bad, why is our host allowing it?
    Thanks
    Regards
    Nath

    Michael, will a .htaccess file work on a Windows server?
    If not, is there a Windows alternative? I've uploaded the
    following
    .htaccess file to my Windows server but my SEO is still
    telling me that
    there is a problem:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^domain\.co.uk$ [NC]
    RewriteRule .*
    http://www.domain.co.uk
    [L,R=301]
    </IfModule>
    Appreciate the assistance, thanks.
    Nath.
    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]..
    > .oO(gareth)
    >
    >>At the worst, the search engines can see it as two
    different sites, ie
    >>with
    >>the same content at two different addresses, and will
    slap a duplicate
    >>content penalty on you. Doesn't happen to everyone,
    but can happen.
    >
    > And it can become even worse if you don't watch your
    links:
    >
    >
    http://example.com/
    >
    http://www.example.com/
    >
    http://example.com/index.html
    >
    http://www.example.com/index.html
    >
    > Four different URLs, but in fact (usually) the same
    resource. For SEO
    > and cache-friendlyness that's a really bad thing.
    >
    >>The solution is to either change the httpd.conf file
    (for apache) to do a
    >>permanent redirect from domainname.com to
    www.domainname, or if you don't
    >>have access to your server configuration, create a
    .htaccess file in the
    >>root directory of your site containing:
    >
    > Personally I prefer the version without the leading
    'www' (for nicer,
    > shorter URLs), but YMMV.
    >
    >><IfModule mod_rewrite.c>
    >>RewriteEngine on
    >>RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
    >>RewriteRule .*
    http://example.com/ [L,R=301]
    >></IfModule>
    >
    > Just for the records my general version, also taking
    into account the
    > URL path, not only the host name:
    >
    > RewriteCond %{HTTP_HOST} ^www\.(.*)$
    > RewriteRule (.*)
    http://%1/$1 [R=301,L]
    >
    > So
    >
    >
    http://www.example.com/foo/bar
    will become
    http://example.com/foo/bar
    >
    > Micha

  • Managing URL redirects/forwards

    My business client has a requirement whereby they wish to manage all URL redirect/forwards themselves. They wish to make changes on a regular basis without involving the tech team. Short of giving them access to the Sun Web Server 7.0 Management GUI, I was wondering if there was another means for us to meet their requirements.

    Yeah, I've looked at the lookup() option. Unfortunately I seem to have neglected to mention that the business team wants to make these changes directly into production. This method obviously poses some risks since an incorrect URL could break production. I could get my development team to write a Java App that can manage the URLs and also check the validity of the URLs, however I guess what I was looking for was an "out-of-the-box" option, a sort of content management system that would interact with the WebServer.

  • 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

  • New e-learning development and content management

    My compay currently uses Serena Collage for Content
    Management along with Macromedia Studio MX 2004 for web site
    development. We have an upcoming e-learning project that we are
    considering developing in Captivate and Flash. We are mandated that
    all development be Section 508 compliant and e-learning must be
    SCORM compliant as well.
    Can I continue to use Collage to manage content developed
    from Captivate and Flash? Is Captivate SCORM and 508 compliant and
    is Flash 508 compliant?
    Please advise.

    I am not familiar with Collage or its requirements, but Flash
    MX 2004 is 508 compliant, I have had to make partial and full
    compliant courses with it. That being said, it took us a decent
    amount of time and effort.

  • New development in Flash Captivate and Content Management

    My compay currently uses Serena Collage for Content
    Management along with Macromedia Studio MX 2004 for web site
    development. We have an upcoming e-learning project that we are
    considering developing in Captivate and Flash. We are mandated that
    all development be Section 508 compliant and e-learning must be
    SCORM compliant as well.
    Can I continue to use Collage to manage content developed
    from Captivate and Flash or will I have to use a different product?
    According to documentation Captivate SCORM and 508 compliant and is
    Flash 508 compliant is this correct?
    Please advise.

    I am not familiar with Collage or its requirements, but Flash
    MX 2004 is 508 compliant, I have had to make partial and full
    compliant courses with it. That being said, it took us a decent
    amount of time and effort.

  • Report : How to show all the reports in Content Management

    Hi,
      Can anyone tell me how I can show the "Resource Locks" Report in Portal.
      I can see 4 reports through Content Management -> Reports i.e. Approval Maintenance, Link Consistency, Resource Statistics, Time-based publishing.
    If I want to add more reports over here than "How I can achieve it".
      Also I have seen the settings System Administration -> System Configuration -> KM -> CM -> Repository Managers -> Reporting Repository
    But here I find no combo box for Active Reports, so from where I can activate the reports and show them in Content Management -> Reports
    Please help me.
    Regards
    Deep

    Deep,
        Are you talkign about the report which give you details of which Portal Objects are currently locked?
       If yes, then you can go to System Adminitrator > Monitoring > Object Locking
    Hope this helps,
    *Points will be appreciated.

  • I can't delete a file in the Content-Management

    Hello,
    I can't delete a file in the Content-Management, altough I have full control.
    I get the following error message:
    System error (com.sapportals.wcm.repository.ResourceNotFoundException): null
    Many thanks for the help.

    Dear SAPMuffel ,
    As far as we can see the error "com.sapportals.wcm.repository.ResourceNotFoundException" is telling that the resource you are trying to delete could not be found, that is also to say, it might not exist any more.
    So please let me know exactly how you can reproduc this issue?
    and what kind of file it is? under what kind of KM repository? 
    Is there any other file under the same KM folder?
    Also you can reproduce the issue and then check the lastest defaulttrace file under this folder:
    ../j2ee/cluster/server0/log/defaultTrace.*.trc
    here you can find the detailed exception.
    Best Regards,
    Thunder

  • How to get the url of a document in content management?

    Hello,
    I have used API  'SKWF_PHIO_CONTENT_URL_GET to get the url of a file in CRM content management. But when I tried to open this url in explorer got error message "SSF error: Decoding not possible". Could any one please help me to resolve this problem.
    Thanks
    Nisha

    Thanks for replying - unfortunately, there is not much
    support on these forums.
    I wish there was some way to emulate the mouse from
    Javascript to click the play, pause, and slider buttons... but one
    would't even know, programmatically, the location on screen of the
    play, pause, and slider buttons.
    quote:
    Originally posted by:
    davexnet
    You'll notice that questions like this don't get answered on
    this
    forum. The Flash player has a philosophy that skews the power
    over almost everything about it to the content providers,
    and precious little control, if at all, to the client player.
    It's a crappy situation - I use Flashblock in Firefox and
    only view the
    content *I* want to see.
    It works for me, particularly since I'm using an older
    (slower )
    computer that really gets bogged down by aggressive Flash
    content.

  • Error while trying to edit in Bea Portal Administration Content Management

    Hi,
    we are exploring the weblogic portal administration 9.2 and we encounter an exception when editing a content in the Content Management feature. We use the weblogic default workflow, we create a user attached to a group, add that group to a role, then delegate the edit and view capability of a content node in the Content Management to that role, we login using the respective user, check out the content, try to edit the property but then the exception occurs.
    It says "A Repository Exception was thrown: User does not have view privileges on the node"
    the detail exceptio on the property page was:
    "javax.servlet.jsp.JspException: Could not find a node at the key: nodeReqAttr
    at com.bea.jsptools.content.node.ViewPropertyTag.doStartTag(ViewPropertiesTag.java374)
    at jsp_servlet._contenet._node._nodeselected._properties._listpropertiescheckout._jsp_tag46 ...."
    Could u help us what step we went wrong, because we previously try this in the WLP 8.1.4 portal administration the exact same step but never encounter this error before.
    And is there anyway I can atteched screenshots to help better explain this problem?
    Thank you for your help.

    Hi,
    You have to set your activex control properly. then only edit locally in KM will work.
    Also check the below wiki
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/KMC/HowtotroubleshootproblemswithLocalEditing
    Hope that helps
    Raghu

Maybe you are looking for

  • Problem with make/libtool

    When running make for a C++ project generated by kdevelop it will spawn tons of "sed s%^.*/%%" and "sh" processes and makes the pc unusable. This happens when trying to build it from kdevelop or running make myself from the terminal. [envil@insurgenc

  • How to download the Upgrade Adobe Presenter 10 and get Serial?

    I purchased an upgrade of Adobe Presenter 10 but have not received any email from them. Any idea how to go about getting my serial number and download link. I have been struggling for 3 days to get in touch with adobe for this. Does anyone know of an

  • What automatically changes a cookie setting from Allow to Block?

    I can get into SalesForce ok, but when I click on the Help and Training tab it asks me to log in again. And it denies me. For some reason the permission for the cookie is blocked. I go in and change to Allow on the web page and also in the Mozilla Pe

  • Rule set - Fundamentals - 46C ECC6 Upgrade impact

    Hi, Am on CC 4.0 FF3.0, SP 12 1.Am I right to say that the rule set contains objects /tcds ? 2. During the upgrde from  46C to ECC6.0 many objects are present, how much is the impact if I use the same rule set as 46C on ECC6 ? 3. Do I really need to

  • HANA BW free trial - no  BO Launch Pad - CMC Only

    Hi, Created instance: SAP Business Warehouse 7.4 SP5 incl. SAP Business Objects BI 4.1 SP2 on SAP HANA 1.0 SP7 BW and HANA Work fine , but there appears to be no BO Launchpad access so cannot run Webi Intelligence reports. Looking at the licence key