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