Htaccess-friendly url handling

Asked

Viewed 133 times

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".

  • 1

    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.

  • 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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.