Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • Sherlock Friend
    #128941

    For all who getting “Direct Access to this location is not allow”, my solution might help you. Otherwise, please PM me the account to inspect deeper.

    Problem:
    The main thing cause the problem mostly caused by the wrong URL in your live site and in the request URL in ajax request of JA NewsFlash. For example: http://yoursite.com and http://www.yoursite.com will considered as 2 different URL. That will cause the error shown above.

    Solution:
    Now we need to forward/direct your site to 1 URL only, for all request. I would recommended to forward all requests to http://www.yoursite.com
    To do this, firstly, please config your live site params to http://www.yoursite.com in your configuration.php or in your installation progress.

    Second, you need to create a file call .htaccess
    Open and put this code to it:

    Options +FollowSymLinks

    RewriteEngine On

    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} !^www.yoursite.com$ [NC]
    RewriteRule !^blog(/.*)?$ http://www.yoursite.com%{REQUEST_URI} [R=301,L]

    Change yoursite.com to your actual domain

    Now all request to your site will be forward to http://www.yoursite.com and you shouldn’t get that deny message anymore.
    Note:
    If you use Ja Newsflash module of JA Fagus for joomla 1.5
    You must edit ja-newsflashloader.php(modulesmod_janewsflashja_newsflash)
    Search those lines:
    <blockquote>JPluginHelper::importPlugin(‘system’, null, false);
    // trigger the onStart events
    $mainframe->triggerEvent( ‘onStart’ );</blockquote>
    Remove or comment them
    And search those lines :
    <blockquote>JPluginHelper::importPlugin(‘content’, null, false);
    $results = $mainframe->triggerEvent( ‘onPrepareContent’, array( &$row, &$params, null ), true );</blockquote>
    Remove or comment them
    And search this line :
    <blockquote>$access->canPublish = 0;</blockquote>
    Change to :
    <blockquote>$access->canPublish = 1;</blockquote>

    mj1256 Friend
    #250738

    this should be used on all websites, especially for search engine optimization, and it should be used globally or site wide, not just for a blog section as in the example above..

    google has a duplicate site penalty that can be incurred if your don’t do the redirect. In SEO terms this is called a “Canonical Redirect.” The above example redirects
    http://mysite.com => http://www.mysite.com

    Google see’s a site without this redirect as being two separate distinct sites, not one..
    http://www.mysite.com
    and
    http://mysite.com
    are not the same in the search engine world.

    so…make sure you have this redirect in place. If you are having issues with it working after already having your SEO component in place, you can try this

    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
    RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]

    this redirects

    http:/www.mysite.com =>http://mysite.com

    it doesn’t matter to google which you use, as long as you use one.

    imurillo Friend
    #252751

    I do not have istalled SEO component in my Joomla web site, in configuration this option is deactivate, is necesary to install JoomSEF3 for joomla 1.5 to use Ja_Newsflash module?

    Is necesary to configure SEO component in my joomla web site to use JoomlaArt templates.

    In my company the main domain is http://www.cancilleria.gob.ni, the oters all web site are
    sub-domain , example:

    oaip2.cancilleria.gob.ni
    app.cancilleria.gob.ni

    Isabel

    friends1976 Friend
    #256097

    Thank you very much! This worked like a charm!

    networker007 Friend
    #263800

    <em>@nguoiabcd 55400 wrote:</em><blockquote>

    To do this, firstly, please config your live site params to http://www.yoursite.com in your configuration.php or in your installation progress.

    </blockquote>

    I use Joomla 1.5.3 and JA Kulanite with JA Newsflash. In the configuration.php there ist no live_site string.

    No matter what url (http://mysite.com or http://www.mysite.com or http://www.mysite.com) I enter it in the browser is always the errors: Direct Access to this location is not allowed

    please help – thx all

    Sherlock Friend
    #263811

    HI networker007
    Plx download latest version of JA newsflash from Kulanite package

    networker007 Friend
    #263852

    hi nguoiabcd,
    i have download the newest kulanite-packages and install new the ja newsflash – but i have the same problem. :((

    Sherlock Friend
    #263853

    Can you give us your live URL, any screenshot or more details of the problem will be helpful

    networker007 Friend
    #263855
    Sherlock Friend
    #263856

    Hi
    I saw that your site get info from
    http://stephan-lange.dyndns.org
    maybe that is problem

    networker007 Friend
    #263861

    i have my own web-server and use the dyndns-service. u can type http://stephan-lange.dyndns.org/projekt2008 for direct access. when i access direct/local (http://localhost/projekt2008) – there is the same problem :((

    now i have a new/another problem with ja newsflash:

    i have modified the libraries/joomla/registry/registry.php so joomlastats can work

    line 196-200:

    // Get the old value if exists so we can return it
    $ns->$nodes[$i] =& $value;

    return $ns->$nodes[$i];
    }

    replace with

    // Get the old value if exists so we can return it
    if($nodes[$i]) $ns->$nodes[$i] =& $value;

    if ($nodes[$i]) return $ns->$nodes[$i];
    }

    and a new error on the ja newsflash comes: Restricted access

    imurillo Friend
    #263903

    I have a Janews flas module working with Ja edenite, I tooke the module from JAdentie Quickstar for joomla 1.53

    In parameter / plantillas I removed
    ##IMAGES##
    ##TITLE##

    and the message direct access is not alloweb desappear

    <div style=”overflow:hidden; height:323px;” >
    <div class=”nfimages”> </div>
    <div class=”nftitle”> </div>
    <div class=”nfcontent”>##CONTENT##</div></div>

    Sufijo de clase del módulo _hilite
    Linked Titles NO
    Style class Scoll UP
    I think the problem is the module, If I put image and title , I have the message again so I deactivated it

    I also activated System – SEF
    Activate XML-RPC – Joomla
    deactivate XML-RPC – Blogger API

    imurillo Friend
    #263904

    Another things I did
    I change mysite = my site name

    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
    RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]

    networker007 Friend
    #263914

    Unfortunately, my problem still exists :((

    Sherlock Friend
    #263995

    Hi networker007,
    Can you please PM me your site admin account as well as FPT account? Without investigating into the codes, I am afraid that we can not provide any solution

Viewing 15 posts - 1 through 15 (of 29 total)

This topic contains 29 replies, has 13 voices, and was last updated by  africa 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum