Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
<VirtualHost server.ip.address.here>
ServerName www.domain-name-here.com
ServerAlias domain-name-here.com
DocumentRoot /path/to/ojs-installation
</VirtualHost>RewriteEngine On
RewriteBase /
# Check for and remove "www" if necessary
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Use this set of 3 lines for each of your journals
RewriteCond %{SERVER_NAME} ^journal-domain-here
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/journal-path-here/$1 [L]
# Use this set of 3 lines to allow access to the site level
RewriteCond %{SERVER_NAME} ^site-domain-here
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/index/$1 [L]base_url[journal-path-here] = http://journal-domain-here
base_url[index] = http://site-domain-hereRewriteEngine On
RewriteBase /
# Check for and remove "www" if necessary
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Use this set of 3 lines for each of your journals
RewriteCond %{SERVER_NAME} ^imathj.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/MATH/$1 [L]
# Use this set of 3 lines to allow access to the site level
RewriteCond %{SERVER_NAME} ^journal_engine.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/index/$1 [L]
base_url[MATH] = http://imathj.com
base_url[index] = http://journal_engine.com
Return to OJS Technical Support
Users browsing this forum: Google [Bot] and 9 guests