You are viewing the PKP Support Forum | PKP Home Wiki

Getting rid of the index.php in the URL

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Getting rid of the index.php in the URL

Postby ale » Tue Nov 27, 2007 5:03 am


I've been testing this very experimental bunch of httpd.conf lines that could also go in an htaccess file:

Code: Select all
RewriteEngine on
RewriteCond $1 !^(index\.php|styles|templates|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Only part of what will be involved but I hope that helps if anyone wants to start the process, and then say, do a search and replace to eliminate the references to index.php. Would that work?
Posts: 15
Joined: Tue Aug 14, 2007 4:47 am

Re: Getting rid of the index.php in the URL

Postby asmecher » Tue Nov 27, 2007 10:01 am

Hi ale,

Have a look in this forum for posts relating to mod_rewrite; there are a few people trying to accomplish the same thing (e.g. removing index.php from the URLs) and I believe there was a working set of rewrite rules.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OCS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests