OCS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, michael

Forum rules
The Public Knowledge Project Support Forum is moving to

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.
Posts: 2
Joined: Fri Mar 28, 2014 3:10 pm


Postby maw » Fri Mar 28, 2014 3:23 pm

I was having trouble getting short URLs to work for my conference. I tried every solution I could find on these support forums and ended up going in circles.

It turned out that with our hosts combination of Linux, Apache and PHP that when mod rewrite is used the values that would normally be in PATH_INFO were now in ORIG_PATH_INFO. Instead of modifying the 4 or 5 references to PATH_INFO with a straight find and replace I followed the advice found at and made each instance test for both. I ended up having to take a slightly different approach for each instance as some test for a value and then use it, others test for the value not existing, etc. While I would be willing to share my code I would suggest that a better approach would be to take the PATH_INFO or ORIG_PATH_INFO value and put it into an OCS constant and then change the references to use the constant. This would also enable the possibility of cleanly dealing with the IIS issue mentioned at the blog.

I would guess that OJS would have the same problem.


Posts: 2
Joined: Fri Mar 28, 2014 3:10 pm


Postby maw » Fri Mar 28, 2014 3:34 pm

... and then I thought to check the OJS forums as well and found this post: ... 6&start=30

Thought I should mention that I tried

Code: Select all

but I couldn't change $_SERVER values, this might be due to my host using suPHP which locks down a lot of settings.


Return to “OCS Development”

Who is online

Users browsing this forum: No registered users and 2 guests