Results 1 to 4 of 4

Thread: .htacces help

  1. #1
    sebek is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    96

    Default .htacces help

    Hello.

    Sugar uses a default .htaccess file like this:

    # BEGIN SUGARCRM RESTRICTIONS
    RedirectMatch 403 ^.*\.log$
    RedirectMatch 403 /+not_imported_.*\.txt
    RedirectMatch 403 /+(soap|cache|xtemplate|data|examples|include|log4p hp|metadata|modules)/+.*\.(php|tpl)
    RedirectMatch 403 /+emailmandelivery\.php
    RedirectMatch 403 /+cache/+upload
    # END SUGARCRM RESTRICTIONS

    This is ok from preventing users to access diferent directories.

    Now I have a problem. I'm using a php script that is located in /modules/MyModule/MyScript.php
    I have to exclude this script from being blocked by .htaccess

    How do i do that?

    Thank you

  2. #2
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: .htacces help

    Hi,

    Please write your module name.

  3. #3
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: .htacces help

    You can do it without .htaccess
    Use this address index.php?module=MyModule&action=MyScript
    Last edited by AlexAv; 2009-10-27 at 10:48 AM.

  4. #4
    sebek is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    96

    Default Re: .htacces help

    Hi
    I'm using yaii asterisk integration. The problem is that javascript checks every few seconds for new calls.

    It makes a GET to : /modules/Asterisk/include/callListener.php , but gets rejected because of .htaccess rules.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •