1 (edited by chirho 2013-01-01 13:45:49)

Topic: Installation in subfolder

Hey,

I've installed Monstra in a subfolder and it works great. Good job Awilum!

Now I want to type www.mysite.com instead of www.mysite.com/monstra to get on the site. And the links should be for example www.mysite.com/blog instead of www.mysite.com/monstra/blog.

I tried to solve this through .htaccess but I didn't make it work and I don't know if the URL will be update.

If this is possible could you give me an instruction how I get this done?

Greetings, and a happy belated new year!

Re: Installation in subfolder

chirho, http://monstra.org/documentation/installation

MOVING MONSTRA OR MIGRATING HOSTS

Go to the Admin panel and, in settings, change the Website URL, if needed.
Edit main .htaccess file and correct the RewriteBase rule.

Monstra Loves You! Give some love back!

Re: Installation in subfolder

Thanks, Awilum. I saw this article. But when I change the URL in the admin panel and move the .htaccess file to the root folder, the css is not working. I also changed the RewriteBase rule to "/"

Maybe I don't understand the RewriteBase rule. Do you have an example?

Thanks for your support

Re: Installation in subfolder

Can anybody help me?

Re: Installation in subfolder

Write your htaccess here to search the problem

..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

6 (edited by chirho 2013-03-07 17:46:29)

Re: Installation in subfolder

nakome wrote:

Write your htaccess here to search the problem

Oh, sorry. Here it is. I changed the Website URL and copied the .htaccess in the root folder. After this, the css is not working.
Thanks for your support!

AddDefaultCharset UTF-8
Options -Indexes

  php_flag magic_quotes_gpc  off
  php_flag magic_quotes_sybase  off
  php_flag register_globals  off


  RewriteEngine on
  RewriteBase /monstra
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php [QSA,L]

7 (edited by nakome 2013-02-09 12:46:57)

Re: Installation in subfolder

#
# Monstra CMS :: php & apache settings 
#
# Set default charset utf-8
AddDefaultCharset UTF-8
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# PHP 5, Apache 1 and 2.

    php_flag magic_quotes_gpc                 off
    php_flag magic_quotes_sybase              off
    php_flag register_globals                 off

# Setting rewrite rules.

    RewriteEngine on
# name of subfolder    (with name monstra can be conflicts)
# /subfolder/ with the bars
    RewriteBase /subfolder/   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..

nakome's Website

Re: Installation in subfolder

Thanks, for your support nakome. Now I get a 403 Error. I don't understand this because mod_rewrite is activated on the hosting server.

Forbidden
You don't have permission to access / on this server.

9 (edited by chirho 2013-03-07 17:46:40)

Re: Installation in subfolder

Does anybody have a hint what I can do?
Do I have to copy the .htaccess outside or inside of the subfolder?

10 (edited by antiben 2013-03-07 23:36:17)

Re: Installation in subfolder

chirho wrote:

...
Thanks, Awilum. I saw this article. But when I change the URL in the admin panel and move the .htaccess file to the root folder, the css is not working. I also changed the RewriteBase rule to "/"

Maybe I don't understand the RewriteBase rule. Do you have an example?

Thanks for your support

that is hopefully not a cache issue?
try deleting the tmp files (admin->system)...

Re: Installation in subfolder

antiben wrote:

that is hopefully not a cache issue?
try deleting the tmp files (admin->system)...

No, it's not. I deleted the tmp files and I deleted the browser cache.

I don't know if my problem understood correctly. I want to type www.mysite.com and I installed Monstra in a subfolder. How can I do this without reinstall the CMS? Do I have to copy some files (index.php or .htaccess)?

Thanks for help

12 (edited by unborn 2013-05-19 23:16:54)

Re: Installation in subfolder

hi,
@chirho.. log in to your monstra and go setings scroll donw to System settings and there in Site Url change it there to your domain you want.. example: http:yourdomain.com then press save

now you log into your ftp and edit .htacess like this:

AddDefaultCharset UTF-8
Options -Indexes

  php_flag magic_quotes_gpc  off
  php_flag magic_quotes_sybase  off
  php_flag register_globals  off


  RewriteEngine on
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php [QSA,L]

now save it and upload it back.. when you done, move all files out from monstra folder to your root dictionary and thats it.. smile no panic, no resintall

If that works please mark your topic as solved.

cheerio!

{code is poetry}