Hide url

Discussion in 'PHP' started by anurag.sharma, Jun 20, 2008.

  1. #1
    I have a forum written in php and is located in the directory /forum. I wish to make the address bar of the browser to display a static url (say, site/forum/index.php).

    Can any one guide me? Also, please tell where I need to add the script for getting this
     
    anurag.sharma, Jun 20, 2008 IP
  2. Plazey

    Plazey Member

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Include the forum in a IFrame. :)
     
    Plazey, Jun 20, 2008 IP
  3. andyba

    andyba Well-Known Member

    Messages:
    132
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #3
    What forum software do you have?
    Do you want to have static html pages instead of for example viewtopic.php?mode=reply&t=23423...
    If yes you need to use mod rewrite.
    First you have to change all your links in the forum to those you want to have with a preg_replace() function.
    Then you must change the .htaccess file so that it changes the links back to php for appache.
    This way from the exterior all the links will be static htmls..
     
    andyba, Jun 20, 2008 IP
  4. anurag.sharma

    anurag.sharma Guest

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    but I need a common url to be shown for all pages , say sitename.com/forum/index.php

    And I am using phpbb..

    Any way thanks for the reply

    Please help me further
     
    anurag.sharma, Jun 20, 2008 IP
  5. Plazey

    Plazey Member

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #5
    or use an <iframe src=url></iframe>
     
    Plazey, Jun 20, 2008 IP