Closed Thread
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 46

Thread: .html or not?

  1. #11
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: .html or not?

    Quote Originally Posted by TcM View Post
    Well I don't use that at all. I just have the .php extension, but now It's good having .html.
    How do you switch from .php to .html? Wouldn't that mean you couldn't have a dynamic page anymore?

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #12
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: .html or not?

    By using a .htaccess

  4. #13
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: .html or not?

    Ohhkayyy...

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  5. #14
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: .html or not?

    Quote Originally Posted by Xav View Post
    Ohhkayyy...
    You can setup a .htaccess file. This will let you create a URL that 'redirects' to a dynamic page, PHP. Forexample here you are seeing:

    .html or not?

    with .html

    But this is actually a .PHP page... and it 'redirects' to this. As you can see both are the same... but one has static and other dynamic URL

    http://forum.codecall.net/showthread.php ?t=3597 (remove the space in the url)

  6. #15
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: .html or not?

    How do you do it?

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  7. #16
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: .html or not?

    Ok to make a .PHP into .HTML you just create a .htaccess file and insert the following

    Code:
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule file.html file.php
    So when you write www. theurl .com/file.html
    actually file.php will be loaded...

    now to make something like the one about CC

    Code:
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule (.*)-(.*)-(.*)\.html$ showthread.php?t=$1&title=$2&page=$3
    Note: I invented title=$2&page=$3, those will show like html-not-2, but the title= and page= entirely depends on the script and how PHP handles them.

    So if you go to
    www. theurl .com/3597-html-not-2.html
    it will redirect to
    www. theurl .com/showthread.php?t=3597&title=html-not&page=2

    Hope you understood. Don't forget to +rep

  8. #17
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: .html or not?

    Oh, come ON!

    I still don't understand - what's the .htaccess file? Is it a brand new file? How is it linked to the other pages? What language is the code you describe?

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  9. #18
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: .html or not?

    OMG man

    I said

    you just create a .htaccess file
    What does that mean? Create a brand new file named .htaccess (I'm not sure if all web hosts allow this)

    No need to link anything.

    The language? Uhm... I think just .htaccess syntax, nothing specific.

    Ok how about now... I don't need your 'o-glorifying' sarcasm... just a click of a button can say 1,000,000 words

  10. #19
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: .html or not?

    Yeah - the REPORT BUTTON!

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  11. #20
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: .html or not?

    Yeah, sure It's still a button, but in that way you will make a powerful enemy. Lately I closed my eyes on somethings you've done... but you know, I can always hit my mind with the desk and end up a Xav-Terminator

    Plus you will still have to write the 1,000,000 words in the report.

Closed Thread
Page 2 of 5 FirstFirst 1234 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. html
    By edwin namisi in forum HTML Programming
    Replies: 11
    Last Post: 06-14-2010, 02:40 PM
  2. Replies: 5
    Last Post: 02-02-2009, 10:58 AM
  3. Which one - PHP or Html?
    By Kolyn_Kryw in forum PHP Development
    Replies: 18
    Last Post: 06-14-2008, 01:47 PM
  4. C++ to HTML?
    By The Midnighter in forum C and C++
    Replies: 14
    Last Post: 11-13-2007, 09:26 AM
  5. HTML Help
    By Selena777 in forum General Programming
    Replies: 3
    Last Post: 05-22-2007, 03:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts