Reputation: 11
This is pretty fine working on local server. But when upload on server this is not working.
RewriteRule ^activate_account/([a-zA-Z0-9]+)\.html$ activate_account.php?activation_code=$1
Page working but passed argument doesn't get. Live Demo.
Upvotes: 1
Views: 772
Reputation: 784958
Enable mod_rewrite and .htaccess through httpd.conf
and then put this updated code in your .htaccess
under DOCUMENT_ROOT
directory:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^activate_account/([^.]+)\.html$ activate_account.php?activation_code=$1 [L,QSA,NC]
Upvotes: 2
Reputation: 47945
RewriteEngine on
which should be active if that works on localhostUpvotes: 1