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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -