SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: same url

Hybrid View

  1. #1
    SitePoint Guru mmarif4u's Avatar
    Join Date
    Dec 2006
    Location
    /dev/swat
    Posts
    619
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    same url

    Hi guys.

    I wana to know some thing here.
    I have a site where there are a lot of pages and directories.

    For example site name is www.site.com (this is the index page).
    Now if the user go to another pages for example click on the about link. How can i do this that the
    site name appear in address bar remain the same as www.site.com not www.site.com/about.php
    and so on for all pages.

    Thanks in advance.

  2. #2
    SitePoint Member
    Join Date
    May 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML Frames

    Everyone preaches against them, and it may kill your SEO, but Frames will do what you're describing.

    Just Google "HTML Frame"

  3. #3
    SitePoint Guru mmarif4u's Avatar
    Join Date
    Dec 2006
    Location
    /dev/swat
    Posts
    619
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Makdaddi View Post
    Everyone preaches against them, and it may kill your SEO,
    WHY ?

  4. #4
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes either the HTML frame will be the solution. Also you can go for ajax too. I think you know what i mean.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5

  5. #5
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    I have to ask but why? What is wrong with haveing www.site.com/about.php it tells people where they are and is it a very important thing to know where you are.

    better not be for security...
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  6. #6
    SitePoint Enthusiast mrsmiley's Avatar
    Join Date
    Jul 2004
    Location
    Melbourne
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Main reason is that site.com could actually be site2.com and you dont want the user to know they have been redirected to another site.

    I guess you could probably simulate it with a proxy script as rajug was hinting at with the AJAX solution. Frames are certainly the easiest method though.

  7. #7
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mrsmiley View Post
    Main reason is that site.com could actually be site2.com and you dont want the user to know they have been redirected to another site.

    I guess you could probably simulate it with a proxy script as rajug was hinting at with the AJAX solution. Frames are certainly the easiest method though.
    Why? what possible reason for that? if you don't want them to know they redirected to another site then don't redirect in the first place. If you are trying to do something sleazy and low maybe you should just get off the internet?
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  8. #8
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alot of reasons for using iframes, or frames is to help with page navigation, however alot of times people get 'locked' in frames and are unable to get out.. or attempting to bookmark and only bookmark partial pages.

    Either way, I think it would be best to use a full url for your cause, as logic_earth has stated above.


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
  •