Help - Search - Members - Calendar
Full Version: php files with no extension
The Planet Forums > Control Panels > Plesk
annie
Hi you all

I moved from another server to EV1. In this old server, when someone requested

www.myserver.com/welcome

they would be automatically redirected to

www.myserver.com/welcome.php

and so on: everytime someone requested a file like that, the server would look for the corresponding file and added the .php itself. Now, i developed a lot of blog software using this feature, and now of course none of it works right.

Now all my blogs have dirty URLs, like

www.myblogsite.com/blogs/petersblog.php/post=1292&t=1&f=1&p=1


----

Im making the parameters up. My blog system is based on b2evolution, but heavily tweaked. For some reason, the "allow extra path information" option of b2evolution is not working either leaving me with horrible horrible urls.
Squire
Welcome annie.

I'm not all that familiar with b2evo, but my first guess would be that you may have missed an .htaccess file when moving things over from one server to another. Not a terribly unusual situation to occur since most servers are set up as a default action to hide dot files.

If the files are up on the old server still you may want to look to see if there was an .htaccess file there that you're now missing. I rather doubt it's a thing that is set up to be as you used it across an entire server --possible load issues with all of that extra processing going on-- so it should be something with the setup of the domain itself.

Maybe it's using Apache's AcceptPathInfo module? If so, you'll want also make sure that you're running Apache 2 on the current server. From memory I do not believe this particular module was there in Apache 1.3.
netfusionx
Hello annie,

What ahppened is that when you were on old server and when some one visted the directory

http://yourdomain/welcome


The .htaccess file in that directory use to direct it to welcome.php page.

Now as you have plesk, you can do one thing

in conf directory which is parallel to httpdocs directory, there is a file called as vhost.conf.(If it is not present create it and run command as follows:

/usr/local/psa/admin/bin/websrvmng

for the changes to refelect)

After doing this add the following code in the file:

DirectoryIndex welcome.php


save it and give command:

service httpd restart

Now doing this what happend is if you visit you website or any directory under it, it will first check for page welcome.php and then .html ,.htm, .php etc etc.


Thanks,
http://Netfusionx.com/forum
Forum for Plesk.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.