.htaccess - Change displayed URL using htaccess -


how rewrite url using htaccess?

when visitor visits index.php, want url rewritten else, although visitor remain on index.php page.

this i've tried (i did research before asking couldn't solve myself):

rewriteengine on rewriterule ^index.php$ testingit.php 

basically, wanted change index.php 'testingit.php', see if work.

you can use code in testwebsite/.htaccess file:

rewriteengine on rewritebase /testwebsite/  # external redirect actual url pretty 1 rewritecond %{the_request} /index\.php[?\s] [nc] rewriterule ^ home [r=302,l,ne]  # internal forward pretty url actual 1 rewriterule ^home/?$ index.php [l,nc] 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -