Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted

Hello mate,

 

Looks like your using Interworx.

 

please do the following: nano /home/username/domain-name.com/html/my/.htaccess ADD this line:

RewriteBase /

Eg:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php

Now go to Company Settings: Settings > System > General now go to: Root Web Directory

 

Ensure it is: /chroot/home/username/domain-name.com/html/my/

 

 

Your cron must be: /usr/bin/php /home/username/domain.com/html/my/index.php cron

 

---

 

on your Cron setting on InterWorx do the following:

 

Hosting Features > Cron Jobs > Cron Options > Edit

 

SHELL > /bin/bash > update

 

 

Hope this helps mate.

  • 0
Posted

Hello,

 

Did this and now the admin interface redirects to the home.

 

Thanks!

########################################################
# package:    minPHP
# filename:   .htaccess
########################################################

<Files ~ "\.(pdt)$">
   order deny,allow
   deny from all
</Files>

# Protect against Clickjacking
#Header append X-Frame-Options "SAMEORIGIN"

RewriteEngine on

# Force HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php
  • 0
Posted

Hello,

 

Does the same without the rewrite base. (Hadn't used the htaccess before this)

 

Weird do you have teamviewer so I can check your installation for you?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...