anchorcms/anchor-cms

Moving Anchor CMS to root (Resolved)

Closed this issue · 0 comments

Summary

Firstly, apologies for duplicating here and in the Anchor CMS forum, I'm just not sure which is checked more regularly.

I'm trying to move Anchor CMS into my root folder which hasn't been a problem. Everything's working as it should, except the links to the articles and admin area aren't working, there's an Internal Server Error. I've checked my htaccess and the app/db.php files and everything appears to be pointing to the right place. Is there something I'm missing?

Expected Behaviour

  • URLs for articles and admin area work.

Actual Behaviour

  • Clicking any article from the home page or visiting /admin no longer works.

Context details (if applicable)

.HTACCESS

Options -indexes

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>

<FilesMatch "\\.(js|css|html|htm|php|xml)$">
   SetOutputFilter DEFLATE
</FilesMatch>

RewriteCond %{HTTP_HOST} ^www\.helloarchie\.co [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
 RewriteRule ^(.*)$ http://helloarchie.co/$1 [L,R=301]
<Files 403.shtml>
order allow,deny
allow from all
</Files>