Wallpapers Forums Login

Can You Explain Mod Rewrite

i have a question regarding an explanation as to what exactly is mod_rewrite and what do i use it for.

i installed a new script on my server and its asking for some mod rewrite module and i have no idea what it is.

can you explain what is mod rewrite

thank you
hostman Wed Feb 16, 2011
well, you can read about it in the official apache website here:
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

but for you, whats important to know is that with mod rewrite you can rewrite a url into a different url.

for example, lets say you have a blog and the url to access one of your blog pages is:

http://www.myblog.com/blog.php?blog_id=1945

as you can see from the above example, when you visit that page, it should open blog_id 1945 from your database,

but how about if you can have it the url like this instead:

http://www.myblog.com/1945.html

as you can see, the url is much shorter and it will display the same content

thats what mod rewrite can do for you. i believe wordpress calls these "permalinks"

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5