URL without .html extension

Hi;
How do I set up a page so that the .html or.htm extension is
not required to
be included when typing in the URL?
Thanks;
Pat

> How do I set up a page so that the .html or.htm
extension is not required
> to be included when typing in the URL?
>
Two options
1/ Name the file in accordance with the default file name set
by your host -
usually index.html/php for *nix servers or
default.htm/asp/aspx on windows
servers
then you.com/folder/index.html can be accessed from
you.com/folder
2/ set up some sort of rewrite rules, eg
you.com/widgets -> you.com/products.asp?product=widgets
you.com/grommets-> you.com/products.asp?product=grommets
Cheers,
Jon

Similar Messages

  • Pointing urls Without html Extension to a Homepage.

    Hello,
    I have a site in which all the pages end with the .html or .php extensions.  I need to have a url with no html extension point to my home page.  So the home page is www.idealwindow.com.  I need to create a link - www.idealwindow.com/trucks that when clicked, will bring up www.idealwindow.com.  Does anyone know how I can do this?  Thank you.

    Create a blank page in the trucks folder called index.html. Then in the <head></head> tags of that page paste this code in:
    <meta http-equiv="Refresh" content="0;URL=http://www.idealwindow.com" />
    When the viewer goes to the page that is advertised on the truck this code will redirect them to the proper home page.

  • Serving Text files without html extension as html pages

    I have a large site that has a number of legacy html files with no extensions. The site was running under 10.3 just fine. Just reinstalled 10.4 and now these pages are rendered as plain text in the browser.
    I've tried adding a blank entry in the extensions under the text/html mime/type setting but doing so creates an error which stops the server. I've got hundreds of these files stored for several years that I don't want to go back through and add a .html on the end of.
    How can I get the web server to treat a file without an extension as an html file?

    I know this isn't an answer to the question you're asking, but are you sure you want that behavior? There might be times where you want an extensionless file to be loaded as a plain text file. At the very least, it will help make your site more compatible.
    If all these files are collected in the same area on your system, it might be best to give them the .html extension.
    You can do this relatively painlessly with virtually any scripting language. I know I've even seen an AppleScript that will go through a batch and change the extension for you. You might want a modified one that will first check for the start/end HTML tags in the file first to make sure you're only changing HTML files. A quick Google search for scripting a filename change will probably yield lots of results (check Perl and PHP resource sites as well).

  • URL without .html

    We are building our site in Muse as we speak. Our current site was build in WordPress.
    We'd love to go live in a few days, but there's a running campaign in which people our directed to a certain URL.
    This URL is www.Cure4Life.eu/zomeractie. But when we go live with our Muse website this URL will change into cure4life.eu/zomeractie.HTML.
    So if we'd go live; when people type in .../zomeractie ( without HTML ) they will end up on a 404 page.
    What can I do to NOT show .html on our Muse website, so that we can go live with it, during this campaign?

    I think I missed it the first time, but I found it, thanks (http://forums.adobe.com/thread/1032246?tstart=0)

  • URL without .html at end

    My website is tjournal.com, but how do I get my homepage to
    use the url of tjournal.com instead of
    tjournal.com/home.html?

    It worked. Thanks!

  • .html extension on website

    When I originally created my web pages in Dreamweaver, I
    saved them as .html files (makes sense, I think).
    The problem is like this: If I want to access a page on my
    site by typing it in irectly into the address window, it only opens
    if I type www.mysite.com/pagename
    .html, and not if I type just www.mysite.com/pagename.
    Is there any way to correct this, and allow me not to have to
    type .html (and make it not show up in the address window as
    .html)?

    .oO(Alan)
    >Create a FOLDER with the desired name, then put a file in
    it named
    >index.html or whatever default directory file works on
    your hosting.
    >
    >
    http://www.example.com/mypage
    >
    >is really loading this:
    >
    >
    http://www.example.com/mypage/index.html
    First it will usually redirect to
    http://www.example.com/mypage/
    <-- notice the slash!
    Then the second request will lead to
    http://www.example.com/mypage/index.html
    The traffic and wasted time caused by such redirects should
    not be
    underestimated. With this method for ".html"-less URLs the
    correct
    address needs a trailing slash! And if you should ever come
    across a
    server that isn't configured to do these "corrections"
    automatically,
    then the URL without the slash would lead to a 404 error,
    because
    http://www.example.com/mypage
    http://www.example.com/mypage/
    are two entirely different URLs and can be interpreted
    differently.
    There are better ways to achieve what the OP wants, for
    example URL
    rewriting or content negotiation (the keywords here for
    Apache servers
    are mod_rewrite and MultiViews). That way you can get really
    nice
    looking URLs without filename extensions and without a
    trailing slash.
    Micha

  • How to open a URL in the default browser via CC HTML Extension?

    Hi,
    I'm trying to open a link via the default browser in a HTML Extension for Photoshop CC built with Extension Builder 3.
    With the initial example the "/indext.html" it look like this:
    <li><button class="default" id="btn_PHXS" onClick="onClickButton('PHXS')" disabled="true">Run ps code</button></li>
    and I changed the code from "/ext.js" to:
    ...function onClickButton(ppid) {    var csInterface = new CSInterface();    csInterface.openURLInDefaultBrowser('http://www.adobe.com');}...
    This is what the "/lib/CSInterface-4.0.0.js" looks like:
    * Opens a page in the default system browser.
    * @param url   The URL of the page to open. Must use HTTP or HTTPS protocol.
    * @return One of these error codes:\n
    *      <ul>\n
    *          <li>NO_ERROR - 0</li>\n
    *          <li>ERR_UNKNOWN - 1</li>\n
    *          <li>ERR_INVALID_PARAMS - 2</li>\n
    *          <li>ERR_INVALID_URL - 201</li>\n
    *      </ul>\n
    CSInterface.prototype.openURLInDefaultBrowser = function(url)
        return cep.util.openURLInDefaultBrowser(url);
    Since "util" doesn't seem to be defined  I get the message:
    Uncaught TypeError: Cannot call method 'openURLInDefaultBrowser' of undefined
    Is the something missing?
    Thx,
    frankin

    Hi Franklin,
    Apologies for the delay but I have been trying to determine why this API is not been working. I have since discovered that, although this API is documented in the JS library, the behaviour has yet to be implemented into Photoshop CC. Offline I will try to determine why this API was included in the library when it was not ready but for the meantime, if you would like to open a browser, here is a workaround:
    Instead of using:
    //(new CSInterface).openURLInDefaultBrowser("http://www.adobe.com")
    // Use the createProcess API to open a browser. The following shows a workflow in Windows to open Internet Explorer.  
    var csInterface = new CSInterface();
    var rootDir = "/";
    var isWindows = window.navigator.platform.toLowerCase().indexOf("win") > -1;
    if (isWindows) {
                        rootDir = csInterface.getSystemPath(SystemPath.COMMON_FILES).substring(0, 3);
    var processPath = "/usr/bin/open";
      if (isWindows) {
        processPath = rootDir + "Windows/explorer.exe";
    var url = "http://www.adobe.com";
    window.cep.process.createProcess(processPath, url);
    Apologies for this inconvenience but we promise to keep you informed when openURLInDefaultBrowser API is fully supported.
    Kind regards,
    Lea

  • Removing .html extension when using MUSE

    After creating my website with MUSE, I uploaded to the Adobe Business Catalyst (BC), but couldn't remove the .html extension. However, if you create a page using just BC, the extension will automatically be gone by default.
    Once you've uploaded your MUSE site to BC, edit your page's HTML CODE. At the top of the HTML CODE, remove <!DOCTYPE html>. Also go through the HTML and remove the .html from all links pointing to pages within your website such as "index.html". It would then be just "index". Or "about.html" -> "about". You can leave links pointing to facebook or twitter or anywhere outside of your website alone.
    Also you will need to edit the page url name. It will say "http://yourdomain.com/index.html" Just remove the .html. This is located at the top of the edit page page on BC, ***NOT IN THE HTML CODE***.
    I'm not sure how to do PHP, but I don't think MUSE creates PHP anyway. Typically you would have to just use the .htaccess Rewrite.

    You are right on.  When you upload files from Muse to BC you are creating the pages on upload and until you go into BC and update the URLs in Site Manager > Pages for each page it will be .html.  The only note I would add is that you don't need to adjust "index.html" file URLs in BC.  If you have a page called "index.html" in the folder "contact" then you only need to adjust the links in your HTML to point to "http://yoursite.com/contact/" and BC will serve the index.html file without showing that filename in the browser URL bar.  If you, instead, have a file called "contact.html" in your BC root folder then, yes.  Just go into the BC admin and update the URL of the page there.  You can leave the .html or .htm extension on the file but BC will serve it without the extension since you specified that in BC's Admin.

  • Is there a way to select MULTIPLE tabs and then copy ALL of the the URLs and titles/or URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; However, I prefer to use a Firefox feature rather than download an add on. Thanks.

    Currently, I can copy ONE tab's url and nothing else (not its name). Or I can bookmark all tabs that are open. However, I'd like to have the ability to select multiple tabs and then copy ALL of the the URLs AND their titles/or copy ALL of the URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; when I download the add on, I get a message saying that using the add on will disable Firefox's tab features. I prefer to use Firefox features rather than download and use an add on. Is there a way to do this without an add on?

    Hi LRagsdale517,
    You should definitely be able to upload multiple files by Shift-clicking or Ctrl-clicking the files you want to upload. Just to make sure you don't have an old version of the service cached, please clear the browser cache and then log in to https://cloud.acrobat.com/files. After clicking the File Upload icon in the upper-right corner, you should be able so select multiple files for upload.
    Please let us know how it goes.
    Best,
    Sara

  • A Beginners Guide to creating Photoshop HTML Extensions with Jquery-UI.

    Like alot of you here, I've been struggling to learn how to create these new HTML extensions.    I thought I'd take the time to make a tutorial of what I've discovered.  I've posted it here: 
    adobescripting.com/MAIN_wp/creating-photoshop-html5-extensions/
    I'm experienced with ExtendScript, but very rusty with HTML and web development.  So this is what I discovered while trying to take that "Create HTML5 Extension In 5 Minutes" tutorial to the next level.    Please let me know if any of the steps need more clarification, or the language is confusing. 
    A small payback for all the great help I've gotten from others on forums like this. THANYOU!  I hope this tutorial is usefull to those of you just beginning.
    (if you're an experienced web developer, then ..I apologize in advance...  I'm learning as I go. )

    Very good tutorial!
    Much appreciated.
    I wish I had read your tutorial more carefully the first time two days ago, then I would have save myself hours and hours.
    It's all there. Communication between panel and jsx, html, the works
    You even tuch the subject about the strange $._ext_PHXS function. A global variable without declaration is accesible through evalScript, I would never had figured that out.  ext_radioButtonInfo = radioButtonInfo; function radioButtonInfo(inRadio)
    Thanks once again!

  • Unable to open the HTML Extension Debug window after InDesign 9.2 update (from 9.1)

    We have tried to follow the two methods of debugging a HTML Extension as mentioned in the below link, but without any luck.
    http://www.adobe.com/devnet/creativesuite/articles/a-short-guide-to-HTML5-extensions.html
    Note: Not all Creative Cloud applications support this method at the time of writing.
    CEP/CSXS 4.2 supports remote debugging for HTML/JavaScript extensions using the Chrome debugger.
    The above snippet from the same article refers to "Remote Debugging" of HTML extensions. Does this mean that somehow InDesign CC 9.2 does not support this method?
    And also where do we get CEP/CSXS 4.2 JS libraries. Adobe Extension Builder 3 is still does not have any updates, and has only the CSXS 4.0.0 support.
    Following are the platforms we have tried doing this with exactly same
    1) Mac 10.8 + InDesign CC 9.2 (International)
    2) Windows 7 + InDesign CC 9.2 (German)
    Please help.
    -Gayatri

    Hi Hui
    Here's the .debug file
    <?xml version="1.0" encoding="UTF-8"?>
    <ExtensionList>
        <Extension Id="com.example.Test.extension1">
            <HostList>
               <Host Name="IDSN" Port="8088"/>
            </HostList>
        </Extension>
    </ExtensionList>
    Though I am able to debug usng Chrome on Mac and Windows now, I still get the following error
    Uncaught SyntaxError: Unexpected identifier CEPEngine_extensions.js:42
    I cant seem to find a way to attach  the extension, please help me out.
    Until then, here is a screen shot of the project ( just a sample project, created using Adobe Extension Builder)
    -Gayatri

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • Hide HTML extension on Business catalyst site from Muse

    Good morning,
    After done a layout design on adobe muse, Normally I publish the site to my third party hosting. It's amazing! that people will not know that i am using which platform to design this website unleash i put the design by muse badge. I done that by add some code to .htaccess on my hosting.
    But my hosting speed might not good, so I try to upload to adobe business catalyst, I would like to ask is there anyway to hide the HTML extension like i used to be done on my previous hosting? I tried to upload the .htaccess too, but it not work.
    I think this feature is should be include in business catalyst.@@

    Hey David,
    People in industry though can spot a Muse site from a mile away The markup (code) it produces is not that great and it does not form things that great and you are limited to what you can do such as this.
    BUT
    BC itself is totally supports none file extension URL's. Login to the BC site, go to the page in the site manager and edit the URL. I think you need to enable editing in the site settings and the cross syncing thing Muse apparently supports now but just know it will be a bit of a clunky process.

  • Web pages without file extensions

    Hi All
    I have Mac OS X Server 10.5 running on a mac mini, i have set up my own single web page through server admin and i am able to access it perfectly by typing in safari http://intranet.
    but the question i have is whenever i click on any link's on my page it will bring that page up but in the address bar have for eg http://intranet/blog/index.html
    is there anyway to have it so it just says http://intranet/blog/
    I am pretty new to this and am totally confused, i am not sure if i need to alter the code of the web pages. i have looked in the code and it is all href to a page but without the extension on it.
    Please could someone help
    Thanks

    It's not entirely clear what it is you're asking.
    Are you saying you never want to see the filename in the address bar and that you want the address bar to always show http://intranet/blog/ ?
    If so the simple answer is no - at least not with standard web programming. The only way you could is by using advanced techniques using DHTML/AJAX or something similar where you load content in the background and change the display rather than loading a whole new page. This is truly an advanced technique.
    If my understanding of what you're trying to do is wrong, please post more details of what it is you're trying to do.

  • Need Notification for attaching the handler On Closing of the HTML Extension in Indesign CC 2014

    Need Notification for attaching the handler On Closing of the HTML Extension in Indesign CC 2014
    Hi,
    I need to process a couple of tasks after clicking on cross button(on top right corner of HTML extension) and before the Extension actually gets closed.
    As I Understand, Extension is using chromium browser.
    I tried attaching an event listener to "onbeforeunload" event of chrome but it suppresses any alerts being thrown and closes the extension, without waiting for
    background processes to complete.
    Is there a way through scripting/Plugin or any other way to achieve it?

    try the script at Adobe Community: InDesign 6 is crashing when attempting to open a particular document. All others are opening OK.
    I'd also try moving the pages to a new file, though I suspect that will crash too. Divide and conquer might work -- tray one of your operations on half the document at a time, then repeat by dividing any piece that fails, and so on, until you isolate a page, then use the same method to isolate an object (though it's possible you have a corrupt page).

Maybe you are looking for