Forwarding .html to .php

I re-did a site and added a few includes and changed the .html to .php pages

So I put a redirect on the file index.html pointing to the index.php page. But I got to thinking, do I really need that? I mean, if I delete the page index.html on the server, the browser is going to serve to the top of the index.php page, right? The reason why I did it was so someone who had the old bookmark page would be redirected. Is this a problem? Thank you.

A 'head' is the code that is exchanged between the client browser and the server on each fetch from the server.  You don't see because it's 'meta' information on the nature of this Exchange.  There is specific information that can be passed in this heading related to the results of the request for a web page - as the formidable "404 Page not found" error.  The browser knows that this has happened because the header sent by the server included a 404 code.  A header 30 x is one of the series of header messages that have to do with the actions that the 'customer' needs to take to meet the demand. You can read about them here-

http://en.Wikipedia.org/wiki/List_of_HTTP_status_codes

Tags: Dreamweaver

Similar Questions

  • Loading a HTML or PHP page in flash

    Hello

    I would like someone to tell me if there is a way to load a html or php page into flash as a movieclip without actually navigating from the flash player (using getURL code). Basically, I wonder if there is a way to load a html file, just as we load movieclips and perform all of the functions of html page.

    Thank you

    Jean Yves

    N ° Flash can only supports displaying html in textfields and only a very limited number of html tags (look to the top of the TextFields htmlText property).  To view a html/php file is therefore not possible.

  • HTML and Php echoes

    Hello

    I'm designing a website using html and php. The problem is that I want to add html in my php.

    The code looks like this.

    <? PHP

    echo"< font size ="2"face ="Times"> try later < / police > ';

    ? >

    I get an error message. It seems to not work. How can I manipulate the text echo in php code?

    Hope you can help.

    This marker, as supposed replied.

  • Google indexes the incorrect file type: html vs php

    Hello

    This weekend I was helped a lot with a problem, I got on php: http://forums.adobe.com/thread/420710?tstart=0

    However, I had downloaded the site a week before and now Google index the old pages with extension html (http://mysafety.be)

    I have included "not to archive ' and 'no index' metatags, but the amount indexed with html continues to climb and no pages with php extension are being indexed.

    This means that I have to keep alive all the html page with no - archive metatag and redirection to the version of php.

    Suggestions, please?

    Thank you

    Erik

    You can place a file named ".htaccess" in the root of any folder, and the server will use the directives in the file to control how it serves pages for the client.  There is a full set of controls, more can be found by Googling "htaccess", probably you do not want to read, but among them is the possibility to do a server for any extraction of page redirection, allowing you to automatically redirect all requests for *.html to *.php.  Which is nice, is that you can send a header with the redirect than direts search engines to adjust their indexes, called a "301" header.  It specifies that the requested page has moved permanently to the new name of the page.

    On several of my sites, I have this redirect used - the .htaccess file contains the markup like this.

    RedirectEngine on

    Redirect 301 xyzzy.html http://www.example.com/xyzzy.php

    Try Google...

  • How to send a complete HTML, dynamic PHP page using phpmail()?

    How to send a complete HTML, dynamic PHP page using PHP Web site phpmail(), similar to the post this page or send the link to a friend?

    How to send a complete HTML, dynamic PHP page using PHP Web site phpmail(), similar to the post this page or send the link to a friend?

  • convert a html in php template

    How to convert my html template to a php template? Any help would be appreciated.

    Thank you

    You need not do anything.

    'foo.dwt' can be used to create HTML, or PHP child pages.

    If you really want to do, however, you can rename foo.dwt to foo.dwt.php
    (using DW Files panel) and allows dajuster DW pages accordingly.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    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
    ==================

    "littlemax" wrote in message
    News:f1sodn$6KB$1@forums. Macromedia.com...
    > How to convert my html template to a php template? Any help would be
    > appreciated.
    >
    > Thank you

  • I need help to get Dreamweaver to recognize html and php files and htm files.

    I have a site legicy and it is prohibitive to chane the names of .php file. So I try to get Dreamweaver cs5.5 to interpret the htm and html files that are including php.

    I'm under XAMPP as my test server.

    I have the index.htm file and it displays all of the links as broken and will not work in live mode view with php includes. However if I rename .php file the file analysis correctly in dreamweaver.

    Is there a work around that?

    I was able to get the host to work Web site by editing the .htaccess file to use this code, but it does not work in Dreamweaver.

    AddHandler x-httpd-php5-cgi .php5

    AddHandler x-httpd-php-cgi .php4

    Options + ExecCGI

    AddType application/x-httpd-php .php .htm .html

    AddDefaultCharset UTF-8

    AddType text/html .htm .html .php

    AddOutputFilter INCLUDES .html .php .htm

    I think you need to change your recording PHP file in XAMPP.

    Nancy O.

  • Create html page /php that looks like a popup window

    Is it possible to create an html / php page that looks like a pop-up window? On my site, I would like to make a link to the videos of miniatures. My current effort has this work but in a new window, it seems not very elegant and I would like to create a page more in line with a pop-up design. This page to a specific size, has no navigation toolbar; no location toolbar; No status bar; No menu bar; no scroll bar and no. resize handles.

    If possible can someone show me how... or an alternative? Link on the page pop up flv video which closes when popup loses focus.

    Thank you for your time


    Ralph

    Not sure if you want a typical pop-up or a viewer window.

    If you look at this test page, hit the music player opens a pop-up window.  But the video player opens in a viewer window.

    http://ALT-Web.com/testing.html

    The first is made with DW behaviors panel:

    http://cbtcafe.com/Dreamweaver/popup_image/index.html

    The latter can be done any number of ways with Floatbox, jQuery Lightboxes or libraries of Walter Zorn ToolTips, to name a few

    http://randomous.com/floatbox/demo

    http://www.Walterzorn.com/ToolTip/tooltip_e.htm

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

  • Problem with HTML and PHP form...

    Hello

    Can someone help me please...

    Im a beginner at Web design and have created a few sites only, but when it comes in contact with the page it always have problems me. I know this must be a simple process but not for me lol.

    IM so frustrated. I finished the site transferred, but the contact page will not work. I download the two html file containing the form and the php in the folder file root on the server (which supports php), and again, it won't work. I went over and over the script but I can't see where im going wrong.

    Please someone take a look and the two files one see if they can pinpoint where im going wrong?

    I would be so grateful!

    See you soon

    Dan

    You should really check Forms To Go. I use this software to treat all of my forms. I can easily apply validation, configure the e-mail settings and redirect to a thank you page using its graphic interface without having to write a single line of php code. The unregistered (free version with limited functions) will do everything you need.

  • insert html in php...

    for the following php code, I try to enter the html code of the page, or at least still a code redirect , but he doesn't like it. What should I do if I do? {This is part of a php login script...}

    "//otherwise they are admin area.
    on the other
    {
    echo '< p > area of Directors ';
    echo "< a href = login.php > sign in here! < /a > < p > ";
    echo "< a href = test_logout.php > < /a > disconnection."
    Print "";
    }
    }
    }
    else '.

    Thank you!

    on the other
    { ?>
    Administration area


    Login here!


    Logout

    any other substance html here

    }
    }
    else '.

  • Dissallow HTML in PHP form?

    Hello

    I ran into a very annoying problem. On my site I allow people to post comments on videos like Youtube, but unlike youtube some users have taken advantage of me and began to type html in comment and then when they post the bed site HTML code and they can add links and distort things.

    Then... I know you can dissable HTML but I have no idea how to. I use a server behavior insert record. Some people give me the code, but nobody tells me where to put it. So if someone could help me with this, I would be very grateful.

    Here is the code that I use, it's kind of long :)

    NOTE: * indicates private information.

    <? PHP

    $input = ereg_replace ("<.") * > ",""(, $input);

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $currentPage = $_SERVER ['PHP_SELF'];

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}

    $insertSQL = sprintf ("INSERT INTO * ('Comment', username) VALUES (%s, %s)," ")

    GetSQLValueString ($_POST ['CommentBox'], "text").

    GetSQLValueString ($_POST ['Username'], "text"));

    @mysql_select_db ($database_ *, $*);

    $Result1 = mysql_query ($insertSQL, $*) or die (mysql_error ());

    }

    $colname_ * = "-1";

    If (isset($_SESSION['MM_Username'])) {}

    $colname_ * = $_SESSION ['MM_Username"];

    }

    @mysql_select_db ($database_ *, $*);

    $query_ * = sprintf ("' SELECT * CONNECTION WHERE username = %s", GetSQLValueString ($colname_ *, "text") ");

    $* = mysql_query ($query_ *, $*) or die (mysql_error ());

    $row_ * = mysql_fetch_assoc($***);

    $totalRows_ * = mysql_num_rows($***);

    $maxRows_ * = 3;

    $pageNum_ * = 0;

    If (isset($_GET['pageNum_***'])) {}

    $pageNum_ * = $_GET ["pageNum_ *"];

    }

    $startRow_ * = $pageNum_ * * $maxRows_ *;

    @mysql_select_db ($database_ *, $*);

    $query_ * = "SELECT * FROM *";

    $query_limit_ * = sprintf ("%s LIMIT %d, %d", $query_ * $startRow_ *, $maxRows_ *);

    $* = mysql_query ($query_limit_ *, $*) or die (mysql_error ());

    $row_ * = mysql_fetch_assoc($***);

    If (isset($_GET['totalRows_***'])) {}

    $totalRows_ * = $_GET ["totalRows_ *"];

    } else {}

    $all_ * = mysql_query($query_***);

    $totalRows_ * = mysql_num_rows($all_***);

    }

    $totalPages_ * = ceil($totalRows_***/$maxRows_***)-1;

    $queryString_ * = «;»

    If (! empty($_SERVER['QUERY_STRING'])) {}

    $params = explode ("&", $_SERVER ['QUERY_STRING']);

    $newParams = array();

    {foreach ($params as $param)

    If (stristr ($param, "pageNum_ *") == false & &)

    stristr ($param, "totalRows_ *") == false) {}

    return ($newParams, $param);

    }

    }

    If (count ($newParams)! = 0) {}

    $queryString_ * = '& '. htmlentities (implode ("&", $newParams));

    }

    }

    $queryString_ * = sprintf ("& totalRows_ * = %d %s", $totalRows_ *, $queryString_ *);

    ? >

    Thank you!

    Thank you for recommending my book, UteFanJason.

    To answer the original question, the simple way to remove all the HTML from user input is to use the PHP strip_tags()function.

    Just put this at the top of the script:

    if (isset($_POST['CommentBox'])) {
      $_POST['CommentBox'] = strip_tags($_POST['CommentBox']);
      $_POST['Username'] = strip_tags($_POST['Username']);
    }
    

    Get rid of the following line:

    $input = ereg_replace("<.*>","",$input);
    

    It is useless and contains a deprecated code anyway.

  • Changing HTML to PHP

    I'm working on my first site DW. I was reviewing a post by a person who asked about the use of HTML on certain pages and PHP on others. The notice was to use PHP throughout the continuity. After thinking about this abit, I determined that in the future I'll probably have to add PHP.

    Now to the question... I started the website in HTML and have gotten a good ways in there. Is it possible to convert the site in PHP now... or do I have to start from square 1. Please keep in mind that I know what is PHP, but have absolutely no experience working with him... and I do not have the site in the code, but in "Design Mode".

    Assistance would be greatly appreciated...

    David Bird

    Just rename .php .html documents.

  • Highlight the Code HTML as PHP

    How can I highlight files with the extension .html or .htm identical to those by .php with Dreamweaver CS3?

    Thank you.

    Dalgton wrote:
    > How can I highlight files with the extension .html or .htm identical to those by .php with Dreamweaver CS3?

    http://KB.Adobe.com/selfservice/viewContent.do?externalId=tn_16410&sliceId=2

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Flash form in html, using php

    Hi all

    Please look at attached code ;~) the hosting server is windows.

    Within the flash swf shape that is I have three varialbles; name, email and message. Form.MC with applied following ActionScript:

    {onClipEvent (data)}
    display the Welcome screen
    _root.nextFrame ();
    }


    Submit a button named true.btn with the following actionscript code is applied:

    on (release) {}
    Send variables in the shape movieclip (the textfields)
    to send the PHP page that will send the mail
    this.form.loadVariables ("email.php", "POST");
    }

    I really need this, not really need for my site. I need my friends, wheres kglad and clbeech? Don't want to scream, but I really need this job ;~)

    Thank you for your time and your consideration.

    Kind regards

    Boxing boom

    Hello

    Yes, thanks, I'll check it. If someone else could shed light more or some on that, I would really appreciate it.

    Thank you all.

    Kind regards

    Boxing boom

  • Adobe Muse - the unexpected HTML to PHP query response

    I am trying to download my Adobe Muse via Upload site to the FTP host. I checked all the information, including my domain name has been entered correctly, but I get this error message. I contacted my hosting service support through service and they checked that all was well at their end. Why I get this error and how can I change it? My site does not at all.

    Screen Shot 2015-06-02 at 8.43.00 PM.png

    Thanks for your help. Now, we know the problem: we have tried to work with 'domain.tld', but our supplier it redirects to "www.domain.tld" with a 301. If muse get - the 301 instead of the test file.

    If this problem occurs, use the URL after the redirect.

Maybe you are looking for