473,394 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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?

Feb 22 '08 #1
16 4836
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 <an*******@freemail.ru>

Feb 22 '08 #2
rf

"AnrDaemon" <an*******@freemail.ruwrote in message
news:21**********************@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.
Feb 22 '08 #3
DS
LOL. This is really an Apache question.
Feb 22 '08 #4
rf

"DS" <ds@bigpond.netwrote in message
news:13************@corp.supernews.com...
LOL. This is really an Apache question.
Or perhaps HTML.
Feb 22 '08 #5
rf

"DS" <ds@bigpond.netwrote in message
news:13************@corp.supernews.com...
LOL. This is really an Apache question.
Or perhaps IIS.
Feb 22 '08 #6
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.com/?id=12345">Visit 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=LllLLllLLL watch.php?v=...

with fwslash goes to index.php without slash goes to *.php
Feb 22 '08 #7
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 bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Feb 24 '08 #8
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.
js*******@attglobal.net
==================

Feb 24 '08 #9
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
http://somewhere/
and
http://somewhere/index.php
?

What I mean "don't write links containing filenames".
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>

Feb 26 '08 #10
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
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.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 26 '08 #11
Steve wrote:
In article
<e0**********************************@e10g2000prf. googlegroups.com>,
ra***********@gmail.com (RAZZ) wrote:
>*Subject:* How to avoid display of filename in URL
*From:* RAZZ <ra***********@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

Feb 26 '08 #12
Tony wrote:
Steve wrote:
>In article
<e0**********************************@e10g2000prf .googlegroups.com>,
ra***********@gmail.com (RAZZ) wrote:
>>*Subject:* How to avoid display of filename in URL
*From:* RAZZ <ra***********@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.
js*******@attglobal.net
==================

Feb 26 '08 #13
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 <an*******@freemail.ru>

Feb 26 '08 #14
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.
js*******@attglobal.net
==================

Feb 26 '08 #15
Jerry Stuckle wrote:
AnrDaemon wrote:
>>
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.
Indeed. However, they do recommend the avoidance of technology-specific
URLs as a means to achieving the ultimate goal of stable URLs.

So it's counter-productive to go around *changing* existing technology-
specific URLs to more neutral ones; but a good idea to use technology-
neutral URLs for new pages.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 27 days, 17:56.]

Bottled Water
http://tobyinkster.co.uk/blog/2008/02/18/bottled-water/
Feb 26 '08 #16
Toby A Inkster wrote:
Jerry Stuckle wrote:
>AnrDaemon wrote:
>>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.
Not true.
Indeed. However, they do recommend the avoidance of technology-specific
URLs as a means to achieving the ultimate goal of stable URLs.

So it's counter-productive to go around *changing* existing technology-
specific URLs to more neutral ones;
It is not, and the advisories make that clear:

http://www.w3.org/QA/Tips/uri-choose
http://www.w3.org/Provider/Style/URI
but a good idea to use technology-neutral URLs for new pages.
ACK
F'up2 ciwam

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Feb 26 '08 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ralph Freshour | last post by:
I have a PHP web app using MySQL - when I save a .jpg file named test's.jpg I see that the filename on the unix server is: test\'s.jpg - the filename I end up saving in my SQL table is named...
4
by: google | last post by:
<html> <head> <title>JavaScript Replace</title> <script language="JavaScript1.1" type="text/javascript"> function phils_image_price(input) { //declare variables var output="" var position=0
7
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. ...
16
by: technocraze | last post by:
Hi pals, I would like to know how to display the FileName of the selected file in the textbox and open it using FileDialog property. I have imported the necessary reference from the library -...
14
by: RAZZ | last post by:
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...
0
by: samz | last post by:
Hello, Here is a simple PHP recursive file list (with interactive and visual FX) Sam's Files http://acc.jexiste.ch/JPN/RecurciveDIR12.RAR 1. How to ignore/avoid empty folders in this PHP script...
2
by: sajtovi007 | last post by:
Hi, I've found code in thread: Using FileDialog property to open File and display FileName in a textbox but: 1. I do not know how to add it in to ACCESS 2003 database. 2. I have fields in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.