Problem with .htaccess or mod_rewrite !?

Discussion in 'aMember Pro v.4' started by lottoestrazioni, Dec 7, 2012.

  1. lottoestrazioni

    lottoestrazioni New Member

    Joined:
    Dec 5, 2012
    Messages:
    12
    Good evening, I'm having a problem. I have a site using Wordpress on aruba.it hosting. By default, the mod_rewrite is active, but using wordpress, i had to edit the .htaccess file in qeusto way:
    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /security      (SECURITY is the name of aMember Pro installation root)
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    But every time I get disconnected FTP or restart the computer, I notice that the. htaccess file returns as the original:
    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    How can I solve this big problem?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    The change you are doing is incorrect and must be breaking your wordpress. It must be necessary to get aMember working.

    WP may accidentally check and rewrite .htaccess file, so it is better to keep your changes outside of
    #BEGIN Wordpress and # END Wordpress
  3. lottoestrazioni

    lottoestrazioni New Member

    Joined:
    Dec 5, 2012
    Messages:
    12
    How should I modify my .htaccess file?
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Good question, but absolutely not related to aMember.

    If you need it for aMember, please described the problem in full.
  5. lottoestrazioni

    lottoestrazioni New Member

    Joined:
    Dec 5, 2012
    Messages:
    12
    I apologize for the absence, but I had many problems and I could not continue the discussion. the problem to be explained is very "simple". My file .htaccess is:

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /security
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    I entered in "Rewrite Base /" the name of the folder where the software is installed, to run correctly the script. But when I create some pages, or delete some of they, the script doeens'nt work. I'm going to check the problem, and I realize that my file is "reconverted so":
    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    I do not understand why. By case would you be able to send a .htaccess for wordpress, that works properly and is not subject to such changes?
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    I believe you have changed your wordpress htaccess file. But you should edit .htaccess file inside your amember folder.
    All changes in wordpress htaccess file will be overwriten by wordpress automatically.
  7. lottoestrazioni

    lottoestrazioni New Member

    Joined:
    Dec 5, 2012
    Messages:
    12
    So perfect. What are the changes that I have made ​​to the file .htaccess file of aMember?...because if I do not supply the file change the script does not work!

Share This Page