Jump to content

Rewriting directory name with .htaccess


Stefany93

Recommended Posts

Howdy,

 

I have a directory named directory1 and the user can access it by typing www.example.com/directory1. However, I want to make it so that the user would type www.example.com/directory2 but they will land on wwww.example.com/directory1, but the URL will show www.example.com/directory2

 

 I tried doing that with this .htaccess:

 

 

    RewriteRule /directory2/ /directory1/

 

but it didn't work. I also searched in google but in vain. Please help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.