1
I have the following code . htacess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^shop\.meusite\.com.br$
RewriteCond %{REQUEST_URI} !^/shop/$
RewriteRule ^(.*)$ http://meusite.com.br/shop/ [P]
</IfModule>
# END WordPress
I wanted to do everything that’s in: "http://meusite.com.br/shop/produtos" get the friendly url: "http://shop.meusite.com.br/produtos".
NOTE: My portal is made in Wordpress and the products are handled by the plugin "Woocommerce".
Do not duplicate and do not post in the wrong area, please have more attention. I marked the other as duplicate of this because this one is more complete, if you want to add information the question click the edit link.
– Guilherme Nascimento
There are a lot of posts about user-friendly URL and . htaccess on the site, which is a great chance this has already been answered (and more than once, including). Use this search here and see which one solves best: http://answall.com/search?q=htaccess+URL
– Bacco