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
  On 6/1/2014 at 2:43 PM, hostingboss said:

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...