OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Removing index.php in the URL Don't work on new server

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

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Removing index.php in the URL Don't work on new server

Postby aambesha » Wed May 08, 2013 9:26 am

I have the restful url to on and the following settings in the .htaccess file:

Code: Select all
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>



On the old server the website was working fine for each journal without .index.php but after the server is moved. This seems to be not working. Please help me as soon as possible.
aambesha
 
Posts: 27
Joined: Wed May 08, 2013 9:19 am

Re: Removing index.php in the URL Don't work on new server

Postby asmecher » Wed May 08, 2013 9:58 am

Hi aambesha,

Please don't double-post -- if your question relates to OCS then please continue the discussion here; otherwise continue on this thread.

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

Re: Removing index.php in the URL Don't work on new server

Postby aambesha » Wed May 08, 2013 10:02 am

Okh i am sorry i will not double post the thread. I am new on this forum. Please suggest me a solution.
aambesha
 
Posts: 27
Joined: Wed May 08, 2013 9:19 am

Re: Removing index.php in the URL Don't work on new server

Postby asmecher » Wed May 08, 2013 10:21 am

Hi aambesha,

Your question mostly relates to mod_rewrite and the problem very likely relates to a change in server platform. Are you sure the server supports mod_rewrite? If you remove those rules, does the installation return to working (without, of course, the short URLs)?

There is likely an error log that contains more information.

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

Re: Removing index.php in the URL Don't work on new server

Postby aambesha » Wed May 08, 2013 10:28 am

Yes if i remove the codes and restfull url turn off the website work fine. Only the problem occur when the code entered and the restful URLs turn on.

mode_write is supported in my server as i have installed OJS in a new folder and applied the same codes to the new installation. It works fine but the previous installation didn't work.

Can i post my website URL here?
aambesha
 
Posts: 27
Joined: Wed May 08, 2013 9:19 am

Re: Removing index.php in the URL Don't work on new server

Postby asmecher » Wed May 08, 2013 10:44 am

Hi aambesha,

Have you checked the error log?

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

Re: Removing index.php in the URL Don't work on new server

Postby aambesha » Wed May 08, 2013 10:55 am

The error log file is attached herewith.

The url : http://escijournals.net/index.php/EJPP works fine

but http://escijournals.net/EJPP there is problem and also with all other journals listed.
Attachments
Error Log.txt
Error Log
(3.18 KiB) Downloaded 65 times
aambesha
 
Posts: 27
Joined: Wed May 08, 2013 9:19 am

Re: Removing index.php in the URL Don't work on new server

Postby asmecher » Wed May 08, 2013 12:16 pm

Hi aambesha,

I don't think your new server is reading your mod_rewrite configuration directives. This could be as simple as using .htaccess directives when they're not supported by your Apache configuration. If you're administering the server, check your mod_rewrite configuration in your Apache config file; if you're not, then you'll need to ask your administrator whether and how this is supported. Unfortunately it's outside the realm of OJS configuration, and quite server-dependent, so I don't think we're going to be able to help you here.

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


Return to OJS Technical Support

Who is online

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