The categories and search pages are not working…
More rules are required?
To completely remove ojs/index.php/journal links do I need to add further rules??
You probably just need a base_url[index] setting in config.inc.php. It should point to your site index path, which will be “http://revista.ibict.br/index/”
The syntax %{REQUEST_FILENAME} is slightly obsolete and should be replaced by %{DOCUMENT_ROOT}%{REQUEST_URI} for Apache 2.2 or better, which you are probably using. This change wouldn’t explain the the error you are seeing, however.
Out of curiosity, what happens if you use an absolute path for the rewrite?
[UPDATE]
Since this is in sites-enabled/available file, shouldn’t there be something to let the mod_rewrite rule where to work from? I’m not sure if DOCUMENT_ROOT is enough in this case. We’re not using a .HTACCESS file
NOTE:
If I can’t get this to work by today, I’ll have to go without mod_rewrite… I have to launch this next week.
I think the QSA modifier in the documentation is also an unnecessary holdover from a past usage. There’s no query string in the rewrite rule, so I don’t think QSA should have any effect.
These rules didn’t produce anything but a 500 error, when there were the only ones in, or had no effect at all, with the rest of the rules.
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
The image is not displayed, as you can see above, even though it’s there and has the same permissions as all other files and folders within plugins.
Is the mod_rewrite at play the problem?
How to fix this?
Thanks for noting that.
How do I set a variable to the baseUrl on a plugin tpl??
[UPDATE]
Never mind the last silly question…
Looked at other .tpl files…
{$baseUrl}…
duh…Felt quite a bit like Homer Simpson…
You’ll need to set a base_url[...] directive in config.inc.php, then likely use mod_rewrite on to get Apache to map the URL to the right place in OJS. This is a pretty typical mod_rewrite setup for OJS, so you can start with the configurations documented in this forum and elsewhere in the website.
Regards,
Alec Smecher
Public Knowledge Project Team