RewriteRule doesn't work in .htaccess files on this server

Discussion in 'Setting-up protection' started by microlinx, Oct 27, 2004.

  1. microlinx

    microlinx Member

    Joined:
    Oct 26, 2004
    Messages:
    268
    When trying to set up new-rewrite:
    I entered the location of cURL in settings, but then got the error : " RewriteRule doesn't work in .htaccess files on this server " when trying to protect a directory.

    I am using Front Page and I know Front Page loves to mess with .htaccess every time you publish your web site.

    Any ideas at how I can start troubleshooting this problem?

    :confused:
  2. microlinx

    microlinx Member

    Joined:
    Oct 26, 2004
    Messages:
    268
    more...

    One other thing which looks like a problem...

    In the Setup > Plugin page, when I select new_rewrite then save and I do not get it's configuration option link at the top of the screen. Also no 1.php is being created in /amember/data/new_rewrite ....no on screen warnings of any errors.

    TIA
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  4. gregr66

    gregr66 Guest

    I'm having the same problem getting new_rewrite displaying. I also don't have:

    http://mysite.com/amember/data/tests/new_rewrite/1.php in that location.

    /amember/data/tests/new_rewrite/.htaccess is also not there.

    Checking my local copy, it's under /amember/data/new_rewrite but no .htaccess

    Any ideas.

    Thanks,
    Greg
  5. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  6. solly

    solly Guest

    Me too

    I have the (RewriteRule doesn't work in .htaccess files on this server) message, and have the tests/mod_rewrite directory, with .htaccess.

    I am new at this program, but help would be appreciated
  7. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    What exactly happens when you access
    http://[I]YOURSITE.COM[/I]/amember/data/tests/new_rewrite/1.php
    using your browser?
  8. solly

    solly Guest

    Nothing

    I get:

    The page cannot be found

    But I knew that was going to happen, since I do not have a sub-directory called /data/tests/new_rewrite/1.php

    I had the demo installed, and just installed the full version over the weekend. It is all working fine, and I have tested it with a credit card processing, that works too.

    I am trying to get rid of the ugly password prompt window, and to put a user name/password login on the main screen of the site. I am assuming that this is the way to do it.
  9. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  10. solly

    solly Guest

    Hmmm

    In Firefox I get "No input file specified."
    In IE6 I get a 404
  11. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Is file uploaded? Check on the server.
  12. solly

    solly Guest

    Yup, its there

    I have the file at

    amember/data/tests/mod_rewrite/1.php

    there is also 2.php in that directory

    and .htaccess

    is that causing the problem?
  13. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Your server is somehow misconfigured. Please contact your webhosting support and ask them why it happens (as you see file is exists).
  14. solly

    solly Guest

  15. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  16. Jesper

    Jesper New Member

    Joined:
    Jan 31, 2006
    Messages:
    1
    Hi all,

    I know it's an old topic but I (my customers) has the same problem and I can only solve it by enabling allowoverride ALL in their vhost.conf file in httpd. since this is not really an option, I need some advise on what exactly to override in order to get mod_rw to work
  17. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It is better to contact your webhosting support with this question.
  18. nitinceh

    nitinceh New Member

    Joined:
    May 3, 2007
    Messages:
    2
    access to protected area

    Hi Alex,

    I followed ur instructions from the forum, I am using a trial demo of amember pro, using phptriad.

    now I had installed everything, and I used the url to 1.php and 2.php and i got the 1-second file for both the files.

    now i have used in my .htaccess file the following:
    "AuthType Basic
    AuthName "Members Only"
    AuthUserFile /var/www/vhosts/xyz.com/httpdocs/data/.htpasswd
    AuthGroupFile /var/www/vhosts/xyz.com/httpdocs/data/.htgroup
    Require valid-user

    Now i get the following when i try to login and access my test subscription
    error:
    Forbidden
    You don't have permission to access /data/tests/mod_rewrite/1.php on this server.

    can you help me what went wrong.


    also when i removed the above from my .htaccess and saved with the defaults in .htaccess:
    <Limit GET POST>
    allow from all
    </Limit>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule 1\.php 2.php

    I keep getting that logon box even when i use my proper credentials i am still not been able to login.


    Thanks in advance.
  19. exeshop

    exeshop New Member

    Joined:
    Jan 10, 2009
    Messages:
    22
    We have the same problem. Is there any solution to this?

    After re-installing server this issue appear.

    I am very sure that rewrite rule is enabled. We are on dedicated server.
  20. exeshop

    exeshop New Member

    Joined:
    Jan 10, 2009
    Messages:
    22

Share This Page