Closed Thread Icon

Topic awaiting preservation: php (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=25239" title="Pages that link to Topic awaiting preservation: php (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: php <span class="small">(Page 1 of 1)</span>\

 
EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 03-11-2005 20:56

yo guys im running pageswith no extentions for example "page" instaed of "page.php" so that the file name dosent actually have an extention but i was wondering if there was a way i could put php into these pages, at the mo it recognizes html but not php

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 03-11-2005 21:30

ok, I don't know, but I must ask - why would do such a thing?

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 03-11-2005 21:35

dont ask me, doin it for a mate
i think he likes the look

(Edited by EDDII on 03-11-2005 21:36)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 03-11-2005 22:09

you could forceType to php the URIs matching a pattern in your .htaccess

AT
Bipolar (III) Inmate

From: Gainesboro, TN, USA
Insane since: Aug 2000

posted posted 03-11-2005 22:25

I agree with poi, I had to do this same thing once for someone.
Here's a link I found for you.
http://www.devarticles.com/c/a/Apache/Using-ForceType-For-Nicer-Page-URLs/1/

and here's what it looks like in your .htaccess

code:
<Files soccer>
ForceType application/x-httpd-php
</Files>



later

...
Look at me... god... I'm marvelous!

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 03-12-2005 17:37
quote:
why would do such a thing?



There is a movement toward creating pages without extensions going on right now. I read an article about a month or so ago.

I don't remember all the details, but the idea behind it is that you want to remove the structure of the site so that as you update the site, you will not be creating broken links. It also means that you are referring to various parts of the site by the name of their content rather than how that content is generated.

For example, if I have a page on my site called page.html and later I re-design the site and that page becomes page.php, I have changed the structure of the site and broken any links to the page, even though I have not changed the content of page. If I had called it page in the first place and let the server figure out how to generate the information, the link to the content in page would not be broken and any outside links, such as people's bookmarks, would remain in tact. Also by calling the page my-cats the page is less likely to get lost in the overall site design.

One of the problems I have with this idea is that the same people are also advocating getting rid of any directory structures in a site's design. The argument is that URLs should be simple enough for people to remember and type into the address bar and adding directories, extensions, and parameters to the URL increases the complexity making it difficult for people to find the page again.



.

-- not necessarily stoned... just beautiful.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 03-12-2005 18:01

ModeRewrite is there to the rescue. It can hide the guts and ugliness of your CMS and provides clean, easy to remember, search engine friendly URLs.

quote:
One of the problems I have with this idea is that the same people are also advocating getting rid of any directory structures in a site's design. The argument is that URLs should be simple enough for people to remember and type into the address bar and adding directories, extensions, and parameters to the URL increases the complexity making it difficult for people to find the page again.

It suppose that your 404 page triggers a search for the pages whose title matche the URI entered by the user, and redirect to the corresponding page if there's only one. But IMHO you can do that and keep a directory structure visible. It just provides an easy and fast mean for the users to access the content of a site.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-12-2005 19:50

also see Cool URIs don't change by the wc3.

Basically, urls should not change. Ever. Restructure your site? Keep the old urls. Running a new CMS?
Keep your urls.

The grail now follows an url scheme that should make this easier in the future,
while at the same time redirecting virtually all old asylum links to their new pages (doing this via the appropriate
http 30x status code - 'permamently moved'. For example, google catched on to that within no time at all).

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 03-16-2005 21:12

yo my page is called test with no extension and i have the htacccess in the same root, i know cos it does my error pages rite and i have written
<Files test>
ForceType application/x-httpd-php
</Files>
but wen i try to open it it just says unknown file type and offers me to download it

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 03-16-2005 21:41

TP,

That was the link I referred to.



.

-- not necessarily stoned... just beautiful.

« BackwardsOnwards »

Show Forum Drop Down Menu