.htaccess URL Rewrite Error - the requested URL was not found on this server

I have a very simple rewrite rule. My entire .htaccess file is as follows:

RewriteEngine On

RewriteRule ^login/([a-zA-Z0-9-/]+)$ company-page.php?company_url=$1
RewriteRule ^login/([a-zA-Z0-9-/]+)/$ company-page.php?company_url=$1

This works fine on the local Wamp server, but does not work on the online server. It displays the following error.!

The requested URL /EZsample/login/mereco-technologies/ was not found on this server.

Can anybody help me!

+4
source share
2 answers

if you use vps please use this article

1. Make sure you have Mod_Rewrite enabled? 2.Learn changes in virtual host configurations.

https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite

+1
source

:

Options -MultiViews
0

All Articles