Question

I'm trying to rewrite specific URL:

http://www.example.com/index.php

to be

http://www.example.com/Encode



but I recieve

The requested URL /encrypo/encrypo/test/index.php was not found on this server.

I don't know why "encrypo" directory appear twice in requested URL.

my .htaccess:

RewriteEngine On
RewriteRule     ^Encode/?$      index.php       [NC,L]
Was it helpful?

Solution

Try this instead

RewriteEngine On
RewriteRule ^Encode$ /index.php [L]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top