mod rewrite - .htaccess add an extra word to add all my URLs -
i need add word right after domain name website urls.
lets url http://www.example.com/somecategory/someproduct.html, should http://www.example.com/logado/somecategory/someproduct.html.
is possible .htaccess file ?
if should add .htaccess file ?
you can use code in document_root/.htaccess
file:
rewriteengine on rewritebase / # prefix each url /logado/ if not present rewritecond %{the_request} !\s/+logado/ [nc] rewriterule ^ logado%{request_uri} [r=302,l,ne] # internally remove /logado/ urls rewriterule ^logado/(.*)$ $1 [l,nc]
Comments
Post a Comment