Redirect - "Search Engine Friendly"

<%
Response.Status="301 Moved Permanently";
Response.AddHeader("Location","
http://www.moreproductinfo.com/index.asp");
%>
Was looking at a site that had the above code as a
recommendation to add
to a page to "correctly" pass on information to search
engines.
I thought it should go with my redirect but I end up with
errors in ASP
<%
If Request.Querystring() = "" Then
Response.Redirect("index.asp")
Response.Status="301 Moved Permanently";
Response.AddHeader("Location","
http://www.new-url.com/");
End If
%>
This is what the actual redirect looks like... It looked
right to me but
it comes up with errors:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/1.asp, line 262
Response.Status="301 Moved Permanently";
---------------------------------------^
Any ideas how this should be implemented? Do I put it on the
page I'm
redirecting from or to? Where on the page, does it matter?
Formatting?

yeah, you don't need the brackets :
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "
http://www.mysite.com/new-page.asp"
%>
"danilocelic AdobeCommunityExpert"
<[email protected]> wrote in
message news:fimu6b$prk$[email protected]..
> Art wrote:
>> <%@ Language=VBScript %>
>> <%
>> Response.Status="301 Moved Permanently";
>> Response.AddHeader("Location","
http://www.new-url.com/");
>> %>
>>
>> This is the original script that I got off of SEO
>
> Ah, yeah, yet another difference between ASP JavaScript
and ASP VBScript.
> For the line causing the issue
> try:
> Response.AddHeader "Location","
http://www.new-url.com/"
>
>
> --
> Danilo Celic
> | Extending Knowledge Daily :
http://CommunityMX.com/
> | Adobe Community Expert

Similar Messages

  • Search Engine Friendly URL Rewriting

    Hi,
    Has anyone done any kind of URL rewriting to convert the big, query ridden portal
    URLs to search engine friendly URLs?
    eg. Portal URL: http://somedomain/application?event=blah&pageID=blah&blah=blahblahblah
    gets converted to
    http://somedomain/pageID/page.htm or something like that.
    Any help will be appreciated.
    Thanks,
    Parag

    Filter your recordset based off text values for your table fields ex. field 'model' will have values Honda, Toyota, Suzuki, etc. and field 'color' will have values red, blue, green. etc.
    The filtered URL will be www.example.com/?model=Honda&color=red to show all red Hondas in the filtered recordset.
    Using .htacces mod_rewrite you can convert the above example to something like www.example.com/red/honda.html
    http://corz.org/serv/tricks/htaccess2.php

  • Tutorial Announcement :: Designing A Search Engine Friendly Website ::

    Designing A Search Engine Friendly Website
    There are many factors that hinder search engines from ranking Websites for many keywords. When web development companies create Websites, often they do not create Websites for the search engines. Usually, they design sites strictly for Internet users.
    Tags:
    Search Engine Optimization | SEO |  Keywords|
    Posted on:
    2009-05-26 03:21:49
    Report | E-mail to friend | Save This Tutorial | Bookmark This Tutorial

    ...or will the meta tags (description, keywords, etc.) placed in
    the index.html file be sufficient to gain substantial rank?
    I would say that depends on your Market and your choice of
    Keywords. If your market is saturated then it's gonna be a tough
    one. If you know the Keywords people use to Search for products in
    your Market... I would say that's as good as it can/will get.
    You can always Submit your site to the Search Engines in
    hopes of being ranked high.
    If it seems worth it... you can always go the Pay per Click
    route.

  • Drop down menus / search engine friendly

    Hi,
    I've been tasked with creating a new company website and having it go live April 10th. I would like to use iWeb to get it done.
    Are drop down menus possible with iWeb? To be clear, I'm talking about if you hover your cursor over a menu item; say products, a drop down menu will appear listing specific products and link to that products page.
    The other main requirement is that the site be search engine friendly. Our current website is in Flash and is virtually invisible to search engines.
    I hope that these questions haven't been answered by digging just a little further, it's just that I'm under a tight deadline and must get started.
    I've been a Mac user since 88 and I would like to work on my preferred platform. I've got a decent background in design. (I'd like to not use Dreamweaver under this deadline) Our current website is www.rapid.com. It was made from a flash template that I was told to use so I made the best of it.
    I'm going for a clean looking non fussy user experience, unlike what we have now.
    Thanks for any help you may have.

    As Massimo says, they are just fine in the basic sense.
    The adminition you are familiar with was related to *any*
    menu system that
    embedded your actual menu links within javascript
    'document.write' commands,
    just the way the DW pop-up menus prior to CS3 does, and the
    way the FW
    pop-up menus prior to FW8 did.
    If you can look at the HTML on the psge, and SEE the links in
    the HTML, then
    a search engine will also be able to see them, and therefore
    spider your
    site.
    BUT - if you have sub-menus, and I have javascript disabled,
    *I* will not be
    able to access those sub-menu links when I come to your site.
    Further,
    neither will anyone with a screen reader. That's a
    problem....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Triplets" <[email protected]> wrote in
    message
    news:f344rd$olm$[email protected]..
    > In the past one was discouraged to not use javascript
    anf DHMTL menus
    > since they are not search engine friendly. How about the
    new CS3 Spry
    > Menus?

  • Making my website search engine friendly

    Hi there
    Hope somebody might be able to help me..
    I am trying to make my website search engine friendly so that it lists the website, has a good ranking etc.
    I have built my website with dreamweaver and some flash elements. I have used both flv content for streaming
    video and swfs for information on certain pages.
    The problem I have is that the website is totally built using AP divs with images inside (or the flash elements mentioned).
    There is no text, unless it is contained within a jpeg, or swf.
    I gather that search engines don't read images. So I have used alternative text for most of the
    images, which I gather search engines, such as google, can read.
    I have also used page titles, inserted html head tag descriptions and keywords.
    Is there anything else I can do to make my website more search engine friendly?
    Somebody told me that I should try to have hidden paragraphs of text, because it is important
    that search engines have enough text to detect within my site..
    Is is not enough that I have provided alt text for the images? Or should I include these hidden paragraphs of text..
    And if so, how?
    Also, some of my AP div images contain quite a lot of text within them.. I notice that when inserting the image
    into the AP div, it gives you the option to insert alternative text OR provide a url with a longer description contained
    within it.. How does that work? Is the url a html document with text inside?
    Please let mne know if you have any ideas regarding any of this.
    Regards
    Sarah

    Is is not enough that I have provided alt text for the images? Or
    should I include these hidden paragraphs of text..  And if so, how?
    Alt text is for web accessibility.  Say your image doesn't load, alt="description"  appears in the browser to give visitors some idea of what the missing image is.  Similarly, Screen Readers express Alt text to people who cannot see images.
    Will putting alt text on images improve your Google ranking?  Not all by itself.   Alt is no substitute for good old fashioned content inside HTML headings <h1> <h2> <h3>, paragraphs and lists.
    Put keyword rich content on your site.  Use Flash Object swapping to show Flash to people who have support for it.  Everyone without Flash, including engines, screen readers and translators will get the HTML version.  If JavaScript is disabled, both versions will display.
    More on FlashObject swapping below:
    http://blog.deconcept.com/flashobject/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Search engine friendly URLs

    Is it possible to use search engine friendly URLs like http://www.ibm.com/developerworks/opensource with JSP?.
    Does any frameworks support this feature?
    Edited by: SreejithS on Sep 15, 2009 10:07 AM

    you may want to remap the URL to your jsps, like
    <servlet>
    <servlet-name>Foo</servlet-name>
    <jsp-file>foo.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>Foo</servlet-name>
    <url-mapping>/very/friendly/foo</url-mapping>
    </servlet-mapping>

  • Search Engine-friendly while content copying blocked?

    Hi all
    I am trying to see if there is a way to create a PDF file that has "Copying content" blocked, without stopping a search engine from reading and indexing that content. is there any way to do this?
    Thanks for any help you can provide

    Filter your recordset based off text values for your table fields ex. field 'model' will have values Honda, Toyota, Suzuki, etc. and field 'color' will have values red, blue, green. etc.
    The filtered URL will be www.example.com/?model=Honda&color=red to show all red Hondas in the filtered recordset.
    Using .htacces mod_rewrite you can convert the above example to something like www.example.com/red/honda.html
    http://corz.org/serv/tricks/htaccess2.php

  • Search Engine friendly text in Flash websites

    Does anyone know if search engines pick up text (selectable text) like they do on html websites to get better rankings?
    Thanks in advance.
    Shaneo

    From what I've read page ranking is mostly determined by the number of links referring to your site and links from high ranking sites like youtube myspace, Adobe Forums are especially valuable.  So if I put links to some of my pages here like http://jimslounge.com , http://charliegooddog.org or http://cybermountainwebservices.com or  http://cybermountainwebservices.com/date/ then they might get a slightly higher ranking. 

  • MX Includes (or whatever they are called after the take-over) search engines friendly urls - what am

    Hi
    I have a set-up with PHP, Apache (mod-rewrite enabled), using "MX includes" and I'm trying get it to work with "/whatever" instead of "mod=whatever" having removed the "mod" from the server behavior. In the database (includes from table) I have added a / before the url.
    But it just does not work. When calling e.g. index.php/news nothing is returned.
    What could I be doing wrong?
    Regards,
    Tom

    Computer operation 101.
    Get a bootable, external HD (preferably FireWire, since it's 40-50% faster than USB 2 and designed for data transfers), make a bootable backup/clone before updating/upgrading, using something like Carbon Copy Cloner or SuperDuper!, and ensure that it's bootable and works like the original. That allows you to revert to the previous good state without having to reinstall or reset anything. See these for details:
    http://www.macmaps.com/upgradefaq.html
    http://www.macmaps.com/backup.html
    http://www.thexlab.com/faqs/installswupdates.html
    http://www.thexlab.com/faqs/backuprecovery.html
    If you only have a Time Machine backup, ensure that you can reliably restore it to another disk/volume/partition before updating/upgrading.

  • How to make my site top in the search engines for a high ranking?

    I am new at this, and I am planning to build a big site on iweb, but my question is where can I get information on how to make my site with high rankings? Would I have to post my site in lots of search engines, or have the hosting company help out? how do i do this?

    As SEO (Search Engine Optimization) is important to you, you may want to consider alternatives to iWeb as "iWeb websites are not made to be search engine friendly" — read more here:
    SEO For iWeb: How to get your iWeb Websites into Google & Other Major Search Engines
    ...iWeb is designed for personal sites and, as such, Apple apparently thinks there's no need for Google — you tell grandma the URL of your personal iWeb site, she painstakingly types it in and then gazes admiringly at the photos of her grandchildren.
    Apple hasn't changed this approach in three iterations of iWeb but perhaps, with all the feedback it receives on this issue, there's still hope. Meanwhile, web-design apps for business sites tend to integrate search engine optimization — Sandvox Pro is an example:
    http://www.karelia.com/sandvox/getyour_site_noticed_andb.html
    Another advantage of Sandvox is that, when viewing your site in Safari, the text increase & decrease commands will work — they don't work for an iWeb-created site. ...For business use, it's important that customers don't turn away from your site because they consider your text too small to read.
    However, if you still really want to use iWeb, this article may help:
    http://www.iwebformusicians.com/SearchEngines/SEO.html
    By the way, for more info about SEO in general, this blog of a web-design app (Yola) recently started a multi-part series on the subject — the first is here:
    http://blog.yola.com/2009/06/15/seo-101
    The rest of the series (in no particular order) can be found here:
    http://blog.yola.com/category/seo/
    And a video:
    _Using Title Tags Effectively For Search Engine Optimization (SEO)_

  • IWeb Discoverable using search engines

    Hello - how do you make an iWEB blog discoverable using search engine without paying to have it come up in search results?

    +"iWeb websites are not made to be search engine friendly."+ ...Read more here:
    _SEO For iWeb: How to get your iWeb Websites into Google & Other Major Search Engines_

  • I have myyahoo set as my search engine. When I try to open this page I get an message saying that it cannot be opened because of too may redirects.  How can I get this to open again?

    I have myyahoo set as my search engine.  Every time I try to open it a get a message that myyahoo cannot be opened because of too many redirects.  How can I get myyahoo page to open?

    Once you have obtained an external drive and connected it you will 'clone' your internal drive to it.
    Download Carbon Copy Cloner (it is not free but there is a fully functional trial version which is). Use it to clone your internal drive to your external drive. When that is done you will reboot from the clone and use Disk Utility to erase the internal drive (choose Mac OS Extended (Journaled)) as the format (this is normally preset, but check). Make sure to give the external drive a 'distinctive' name, don't want to get drives mixed up in this process.
    Once that is done you will use Carbon Copy Cloner (from the clone) to restore the external to the internal.

  • When i use a search engine like google, yahoo, etc., when I click on the link I am immediately redirected to a different site. How to I prevent this?

    when i use a search engine like google, yahoo, etc., when I click on the link, I am immediately redirected to another site. Many times I must hit "back", and click on the link again. Sometimes I am redirected again to another and different site. If I go back again and re-click, it will then take me to the link that is listed.

    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • I am not able to purchase apps, I'm not getting any error alerts. I just get no response when I attempt to purchase. Also when I attempt to use a search engine to find a itunes app I just get redirected.

    I am not able to purchase itune apps. I do not receive a error message.
    I do not get a response when I attempt to purchase.
    When I use a search engine to find a app and it is to be
    Found at the itunes site I get redirected.

    Have you tried resetting and restarting >  iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    Or restoring >  iTunes: Restoring iOS software

  • Everytime I click on a website I searched for it redirects me to either pebble search engine or scour search engine. How do I fix this?

    Whenever I search for a website and click on it I get redirected to a different search engine.

    This sounds like it could be the result of malware on the computer. Please see [[Is my Firefox problem a result of malware]] for help.

Maybe you are looking for

  • How do i find out who the carrier is and can i get it unlocked to use in australia?

    Hi there, I got a iphone4 from my friend ewho brought it from someone from ebay in the states I am unable to use the phone and was told that the phone had been updated to a baseband that can not be unlocked and that I need to contact the carrier. How

  • How to change default value in form

    Hi, I want to change the default value in form..how can i do this? Fo exa...in purchasing when we go to auto create..in action tab we see create been defaulted whenever we open the form and also there is one more option called add to...so whenever i

  • Servlet.jar problem

    Hi all Could anyone help me out this problem, I keep trying to figure it out these days but I still cant find my way. I cannot compile a simple HelloWorldServlet.java, as it gave me 6 errors: =========================================== package javax.

  • IWeb suddenly not publishing

    I have 3 websites - my personal site and 2 client sites which have passwords on them. Thanks to Finder have the mother of all freezes I've spent the weekend reinstalling everything back onto my Mac Pro, and when I transfered my iWeb domain file from

  • Why XI if scenario is only file to file

    hi friends my customer interacts with 6 to 7 partners in their day-to-day business.  Only the customer uses SAP platform and the rest of the partners are using non-SAP technologies.  However, the preferred medium of communication between the customer