dimanche 4 octobre 2015

.htaccess is changing my URL eventhough I'm using [P] flag and relative target

I have my wordpress site located in a subdirectory as such

domain.com/wordpress

I want visitors to go to domain.com and see my wordpress site, without the URL changing to domain.com/wordpress

I followed some other post on here with same issue, but none of the solutions fixes it for me. Here is my htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$
#RewriteRule ^(/)?$ wordpress [L]
RewriteRule ^(.*) /wordpress [p]
</IfModule>

# END WordPress



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire