php - Help with writing a .htaccess file -


ive seen alot of .htaccess tuts , none of them seem make sense. want rename www.example.com/index.php www.example.com/home

all of these tuts give horrible examples , have far. dont suprised if looks bad, think idk find decent tut on how write correct one

my question was, how write .htaccess file rename index.php home

this have far

options +followsymlinks  rewriteengine on rewritebase / 

this should need.

rewriteengine on rewriterule ^home$ index.php [l,qsa] # rewrite imaginary otherpage someplace.php... rewriterule ^otherpage$ someplace.php [l,qsa] rewriterule ^adifferentpage$ someplace_else.php [l,qsa] 

now requests /home silently served index.php. additional parameters in querystring passed in well.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -