1. If you're receiving a message that you are banned from the Current Events or Politics forums, it's not you specifically: those forums have been hidden for all users. For more info, see here.
    Dismiss Notice

[H] .htaccess error 403

Discussion in 'Programming & Software Development' started by renvilo, May 6, 2019.

  1. renvilo

    renvilo Member

    Apr 8, 2017
    Berwick (3806)
    Hi guys,

    hoping there's someone here that can assist. I'm in the process of migrating a website from .co.za to .com.au. I made a backup in cPanel and then restored it but I'm getting a Error 403 Permission denied error. I did a bit of reading and it comes down to the .htaccess file. So I'll start off with what my working site's code is now:

    I have a few defined "tags". The below is just an example:

    define("_SITE_ADDRESS", "/");

    I refer to links as follow:

    <link rel="stylesheet" href="<?php echo _SITE_ADDRESS ?>css/other/index/jquery-ui.css">

    So at the end it should look at /css/other/index/jquery-ui.css

    My current cPanel uses Multi PHP Manager which I believe uses a "ea" php variance. The new hosting uses PHP Selector which uses "alt" php variance. The working site has the following code in .htaccess:

    AddHandler application/x-httpd-ea-php56 .php .php5 .phtml

    But because of the "ea" I'm getting the error. Once I change this to "alt" the error goes away but nothing on my page loads. I then inspect the page and it comes up with several errors like

    "GET https://www.website.com.au/_SITE_ADDRESScss/other......"
    "Uncaught ReferenceError: $ is not defined at xxxxx.php:9 anonymous) @xxxx.php:9"

    So it doesn't seem to be pulling my "tags" into the page. Any idea what I can do to fix this? I'm not a developer but have a little understanding of these things.

Share This Page