Wednesday, March 5, 2008

Enabling Search Engine Friendly URLs in Plesk

Add the following line to your httpd.conf file (located in /etc/httpd/conf/):

AcceptPathinfo On

That's all there is to it! What this does is have Apache check your filesystem for a part of the pathname requested that's actually a file. For instance, if you had the following URL:

http://www.samplewebsite.com/scripts/script.php?option=value

Having AcceptPathinfo set to "On" enables that URL to be requested like this:

http://www.samplewebsite.com/scripts/script.php/option/value

This allows dynamic pages to be passed as static, and therefore more search engine friendly, since search engines will not index the dynamic part of URL's.

1 comment:

elson cade said...

I struggled my head with this problem and couldn't get it solved. I started looking for a freelancer and found a team of friendly people called called ServerBuddies. They provide quality remote server management, including troubleshooting, Server Management, Plesk Support, Server Maintenance, Server Monitoring, Server Troubleshooting and support at a affordable rates. They also provide Server Optimization, Plesk Support, Linux Support, cPanel Support and Plesk Support. They are great, I highly recommend to use these guys!