Welcome to WebmasterWorld Guest from 54.145.209.34

Forum Moderators: phranque

Calling files without using a file extension

If I call http://www.mysite.com/script it must run script.php

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

10+ Year Member



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.

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

10+ Year Member



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.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month