mardi 28 avril 2015

.htaccess: forward to url but keep current url

I'm trying to forward an url (url1) to another url (url2). But i dunt ant the users to see url2

I've tried a couple of things and got this to do a forward. It doesn't change url1 to url2 tough:

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_URI} ^/url1
RewriteRule ^(.*)$ url2 [L] 

Aucun commentaire:

Enregistrer un commentaire