How to avoid display of filename in URL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RAZZ

    How to avoid display of filename in URL

    Hi,

    When I login to my site initially it load index.php by default. We
    can't see the page name index.php displayed in URL.

    But when I click to some link on this page it will display the whole
    path with file name on address bar and URL. I need that it should not
    display my php files names on address bar and URL, how should I
    achieve it?

  • AnrDaemon

    #2
    Re: How to avoid display of filename in URL

    Greetings, RAZZ.
    In reply to Your message dated Friday, February 22, 2008, 07:59:18,
    When I login to my site initially it load index.php by default. We
    can't see the page name index.php displayed in URL.
    But when I click to some link on this page it will display the whole
    path with file name on address bar and URL. I need that it should not
    display my php files names on address bar and URL, how should I
    achieve it?
    Don't write links containing file names. But what is Your PHP question?


    --
    Sincerely Yours, AnrDaemon <anrdaemon@free mail.ru>

    Comment

    • rf

      #3
      Re: How to avoid display of filename in URL


      "AnrDaemon" <anrdaemon@free mail.ruwrote in message
      news:215861099. 20080222092531@ freemail.ru...
      Greetings, RAZZ.
      In reply to Your message dated Friday, February 22, 2008, 07:59:18,
      >
      >When I login to my site initially it load index.php by default. We
      >can't see the page name index.php displayed in URL.
      >
      >But when I click to some link on this page it will display the whole
      >path with file name on address bar and URL. I need that it should not
      >display my php files names on address bar and URL, how should I
      >achieve it?
      >
      Don't write links containing file names. But what is Your PHP question?
      For that matter what is the Javascript question?

      --
      Richard.


      Comment

      • DS

        #4
        Re: How to avoid display of filename in URL

        LOL. This is really an Apache question.

        Comment

        • rf

          #5
          Re: How to avoid display of filename in URL


          "DS" <ds@bigpond.net wrote in message
          news:13rt8bo36e j8e0@corp.super news.com...
          LOL. This is really an Apache question.
          Or perhaps HTML.


          Comment

          • rf

            #6
            Re: How to avoid display of filename in URL


            "DS" <ds@bigpond.net wrote in message
            news:13rt8bo36e j8e0@corp.super news.com...
            LOL. This is really an Apache question.
            Or perhaps IIS.


            Comment

            • Betikci Boris

              #7
              Re: How to avoid display of filename in URL

              On Feb 22, 6:59 am, RAZZ <rajat82.gu...@ gmail.comwrote:
              Hi,
              >
              When I login to my site initially it load index.php by default. We
              can't see the page name index.php displayed in URL.
              >
              But when I click to some link on this page it will display the whole
              path with file name on address bar and URL. I need that it should not
              display my php files names on address bar and URL, how should I
              achieve it?
              <a href="http://www.myphpsite.c om/?id=12345">Visi t This part of My
              Site</a>

              This link returns the id of 12345 to the index.php or whatever...

              you can see that on youtube.com watch?v=LllLLll LLL watch.php?v=...

              with fwslash goes to index.php without slash goes to *.php

              Comment

              • Thomas 'PointedEars' Lahn

                #8
                Re: How to avoid display of filename in URL

                Gene Kelley wrote:
                RAZZ wrote:
                >When I login to my site initially it load index.php by default. We
                >can't see the page name index.php displayed in URL.
                >>
                >But when I click to some link on this page it will display the whole
                >path with file name on address bar and URL. I need that it should not
                >display my php files names on address bar and URL, how should I achieve
                >it?
                >
                Your problem is complex, your description vague.
                Nonsense. It could not be simpler and the description of it could not be
                more clear.
                But, IF are running Apache web server, a possible solution for you might
                be to look into Apache's mod_rewrite extension that would give you a
                rule-based rewriting engine to rewrite requested URLs on the fly.
                Break, fly, wheel.


                F'up2 cl.php

                PointedEars
                --
                var bugRiddenCrashP ronePieceOfJunk = (
                navigator.userA gent.indexOf('M SIE 5') != -1
                && navigator.userA gent.indexOf('M ac') != -1
                ) // Plone, register_functi on.js:16

                Comment

                • Jerry Stuckle

                  #9
                  Re: How to avoid display of filename in URL

                  Thomas 'PointedEars' Lahn wrote:
                  Gene Kelley wrote:
                  >RAZZ wrote:
                  >>When I login to my site initially it load index.php by default. We
                  >>can't see the page name index.php displayed in URL.
                  >>>
                  >>But when I click to some link on this page it will display the whole
                  >>path with file name on address bar and URL. I need that it should not
                  >>display my php files names on address bar and URL, how should I achieve
                  >>it?
                  >Your problem is complex, your description vague.
                  >
                  Nonsense. It could not be simpler and the description of it could not be
                  more clear.
                  >
                  >But, IF are running Apache web server, a possible solution for you might
                  >be to look into Apache's mod_rewrite extension that would give you a
                  >rule-based rewriting engine to rewrite requested URLs on the fly.
                  >
                  Break, fly, wheel.
                  >
                  >
                  F'up2 cl.php
                  >
                  PointedEars
                  And it has nothing to do with PHP. PHP is not involved in URI processing.

                  FUP'd back to c.l.javascript.

                  --
                  =============== ===
                  Remove the "x" from my email address
                  Jerry Stuckle
                  JDS Computer Training Corp.
                  jstucklex@attgl obal.net
                  =============== ===

                  Comment

                  • AnrDaemon

                    #10
                    Re: How to avoid display of filename in URL

                    Greetings, rf.
                    In reply to Your message dated Friday, February 22, 2008, 10:31:01,

                    >>When I login to my site initially it load index.php by default. We
                    >>can't see the page name index.php displayed in URL.
                    >>
                    >>But when I click to some link on this page it will display the whole
                    >>path with file name on address bar and URL. I need that it should not
                    >>display my php files names on address bar and URL, how should I
                    >>achieve it?
                    >>
                    >Don't write links containing file names. But what is Your PHP question?
                    For that matter what is the Javascript question?
                    Do You see any difference between

                    and

                    ?

                    What I mean "don't write links containing filenames".


                    --
                    Sincerely Yours, AnrDaemon <anrdaemon@free mail.ru>

                    Comment

                    • Jerry Stuckle

                      #11
                      Re: How to avoid display of filename in URL

                      AnrDaemon wrote:
                      Greetings, rf.
                      In reply to Your message dated Friday, February 22, 2008, 10:31:01,
                      >
                      >
                      >>>When I login to my site initially it load index.php by default. We
                      >>>can't see the page name index.php displayed in URL.
                      >>>But when I click to some link on this page it will display the whole
                      >>>path with file name on address bar and URL. I need that it should not
                      >>>display my php files names on address bar and URL, how should I
                      >>>achieve it?
                      >>Don't write links containing file names. But what is Your PHP question?
                      >
                      >For that matter what is the Javascript question?
                      >
                      Do You see any difference between

                      and

                      ?
                      >
                      What I mean "don't write links containing filenames".
                      >
                      >
                      That's great if you have a one page site.

                      --
                      =============== ===
                      Remove the "x" from my email address
                      Jerry Stuckle
                      JDS Computer Training Corp.
                      jstucklex@attgl obal.net
                      =============== ===

                      Comment

                      • Tony

                        #12
                        Re: How to avoid display of filename in URL

                        Steve wrote:
                        In article
                        <e0fd892a-6170-4c64-9374-552f73fd4358@e1 0g2000prf.googl egroups.com>,
                        rajat82.gupta@g mail.com (RAZZ) wrote:
                        >
                        >*Subject:* How to avoid display of filename in URL
                        >*From:* RAZZ <rajat82.gupta@ gmail.com>
                        >*Date:* Thu, 21 Feb 2008 20:59:18 -0800 (PST)
                        >>
                        >Hi,
                        >>
                        >When I login to my site initially it load index.php by default. We
                        >can't see the page name index.php displayed in URL.
                        >>
                        >But when I click to some link on this page it will display the whole
                        >path with file name on address bar and URL. I need that it should
                        >not
                        >display my php files names on address bar and URL, how should I
                        >achieve it?
                        >>
                        >>
                        relative links to the index page like:
                        <a href="./"></a>
                        seems to work for index.php

                        Comment

                        • Jerry Stuckle

                          #13
                          Re: How to avoid display of filename in URL

                          Tony wrote:
                          Steve wrote:
                          >In article
                          ><e0fd892a-6170-4c64-9374-552f73fd4358@e1 0g2000prf.googl egroups.com>,
                          >rajat82.gupta@g mail.com (RAZZ) wrote:
                          >>
                          >>*Subject:* How to avoid display of filename in URL
                          >>*From:* RAZZ <rajat82.gupta@ gmail.com>
                          >>*Date:* Thu, 21 Feb 2008 20:59:18 -0800 (PST)
                          >>>
                          >>Hi,
                          >>>
                          >>When I login to my site initially it load index.php by default. We
                          >>can't see the page name index.php displayed in URL.
                          >>>
                          >>But when I click to some link on this page it will display the whole
                          >>path with file name on address bar and URL. I need that it should not
                          >>display my php files names on address bar and URL, how should I
                          >>achieve it?
                          >>>
                          >>>
                          >
                          relative links to the index page like:
                          <a href="./"></a>
                          seems to work for index.php
                          >
                          >
                          If your server is properly configured to do so, that is.

                          --
                          =============== ===
                          Remove the "x" from my email address
                          Jerry Stuckle
                          JDS Computer Training Corp.
                          jstucklex@attgl obal.net
                          =============== ===

                          Comment

                          • AnrDaemon

                            #14
                            Re: How to avoid display of filename in URL

                            Greetings, Jerry Stuckle.
                            In reply to Your message dated Tuesday, February 26, 2008, 04:03:36,
                            >>>>When I login to my site initially it load index.php by default. We
                            >>>>can't see the page name index.php displayed in URL.
                            >>>>But when I click to some link on this page it will display the whole
                            >>>>path with file name on address bar and URL. I need that it should not
                            >>>>display my php files names on address bar and URL, how should I
                            >>>>achieve it?
                            >>>Don't write links containing file names. But what is Your PHP question?
                            >>
                            >>For that matter what is the Javascript question?
                            >>
                            >Do You see any difference between
                            >http://somewhere/
                            >and
                            >http://somewhere/index.php
                            >?
                            >>
                            >What I mean "don't write links containing filenames".
                            That's great if you have a one page site.
                            It is not my problem, yes? :)
                            And even more, it is w3c recommendation to NOT expose any underlying
                            technology by prefixing/suffixing URI's with technology-specific data (s.a.
                            ".php" or the like).


                            --
                            Sincerely Yours, AnrDaemon <anrdaemon@free mail.ru>

                            Comment

                            • Jerry Stuckle

                              #15
                              Re: How to avoid display of filename in URL

                              AnrDaemon wrote:
                              Greetings, Jerry Stuckle.
                              In reply to Your message dated Tuesday, February 26, 2008, 04:03:36,
                              >
                              >>>>>When I login to my site initially it load index.php by default. We
                              >>>>>can't see the page name index.php displayed in URL.
                              >>>>>But when I click to some link on this page it will display the whole
                              >>>>>path with file name on address bar and URL. I need that it should not
                              >>>>>display my php files names on address bar and URL, how should I
                              >>>>>achieve it?
                              >>>>Don't write links containing file names. But what is Your PHP question?
                              >>>For that matter what is the Javascript question?
                              >>Do You see any difference between
                              >>http://somewhere/
                              >>and
                              >>http://somewhere/index.php
                              >>?
                              >>>
                              >>What I mean "don't write links containing filenames".
                              >
                              >That's great if you have a one page site.
                              >
                              It is not my problem, yes? :)
                              And even more, it is w3c recommendation to NOT expose any underlying
                              technology by prefixing/suffixing URI's with technology-specific data (s.a.
                              ".php" or the like).
                              >
                              >
                              That is not what W3C recommends. They only recommend not changing URLs.

                              --
                              =============== ===
                              Remove the "x" from my email address
                              Jerry Stuckle
                              JDS Computer Training Corp.
                              jstucklex@attgl obal.net
                              =============== ===

                              Comment

                              Working...