homepage Welcome to WebmasterWorld Guest from 54.166.123.2
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Calling files without using a file extension
If I call http://www.mysite.com/script it must run script.php
johnypalillo




msg:663945
 12:05 pm on Jul 10, 2003 (gmt 0)

I was hosted in a Cobalt server where by default if I call: http://www.mydomain.com/script
it loads http://www.mydomain.com/script.php

It was useful because it let my to easily construct a site with search engine friendly url:

http://www.mydomain.com/script/param

was the same as:

http://www.mydomain.com/script.php/param

Now I have moved my domains to another host provider(because frequent downtime) but that urls don't work and I must rewrite all scripts.

I would like to find a way to configure mi httpd.conf for work in the that way.

 

johnypalillo




msg:663946
 9:21 am on Jul 11, 2003 (gmt 0)

This is a selfreplying:

The only thing I needed was to setup Multiviews in my Options in the hhttpd.conf file.

I had a problem because it was working with files with extensions like ".jpg" and ".gif" , but not with ".php". It was because my default conf files for Apache/2.0.40 (Red Hat Linux) was not including an Addtype line for Php, the PHP.conf files was working with a filter.

After this all is running fine for clear URLs without Rewriting rules.

Good Luck.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved