mod_rewrite error
blackbook said 1 year, 1 month ago:
I am trying to install a membership script and its giving me this error: Seems your webhosting does not support mod_rewrite rules required by aMember. There may be several reasons: Your webhosting has no mod_rewrite module enabled. Contact tech support to get it enabled
Your webhosting uses software different from Apache webserver. It requires to convert rewrite rules located in amember/.htaccess file into the webserver native format. Contact webhosting tech for details.
You may continue aMember installation, but aMember will not work correctly until mod_rewrite issues are resolved.
please help
sherrod said 1 year, 1 month ago:
@blackbook,
It sounds like you are simply needing to enable mod_rewrite. The following should assist in this:
Sherrod
blackbook said 1 year, 1 month ago:
this is my .htaccess that is giving an error:
# Sample Nginx rules configuration:
# aMember rules (replace /amember to actual aMember Pro path from site root)
#
# location ~* ^/amember/.*.(js|ico|gif|jpg|png|css|swf|csv)$ {}
# location ~* ^/amember/setup/index.php$ { try_files not-existing-file @php; }
# location ~* ^/amember/js.php { try_files not-exiting-file @php; }
# location ~* ^/amember/index.php$ { try_files not-existing-file @php; }
# location ~* ^/amember/public.php$ { try_files not-existing-file @php; }
#
# location ~* ^/amember/public { rewrite ^.*$ /amember/public.php; }
# location ~* ^/amember/setup { rewrite ^.*$ /amember/setup/index.php; }
# location ~* ^/amember { rewrite ^.*$ /amember/index.php; }
#
# you must already have something like that in your nginx configuration:
#
# location ~ .php$ {
# try_files not-existing-file @php;
# }
# location @php {
# fastcgi_pass 127.0.0.1:9000;
# include fastcgi_params;
# }
#
# it is necessary to have @php section, as it is referred by aMember rules, and
# it must be located at bottom
#
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^public public.php [L]
RewriteRule ^js.php js.php [L]
RewriteRule !.(js|ico|gif|jpg|png|css|swf|csv|html)$ index.php
</IfModule>
<IfModule mod_php5.c>
# php_flag magic_quotes_gpc off
</IfModule>
where is the problem.please help
blackbook said 1 year, 1 month ago:
is anyone goind to attend to my problem
chrisg said 1 year, 1 month ago:
@blackbook,
My apologies for the delay. I have taken a moment to look over the script example you have provided with a member of our Hosting team. Currently, we can see no issues within the script that would be preventing you from enabling Mod_Rewrite in a Linux shared hosting environment.
If you are still encountering issues with installation of this application that indicate your Mod_Rewrite modules are disabled, could you please provide the specific URL address on your live site that is generating this error. With that URL address, we should be able to further diagnose the issue.
Christopher G.
0 min expected wait time