Can You Explain A Little Bit Of Mod Rewrite For A Beginner
- Forums
- Dedicated Hosting
- Can You Explain A Little Bit Of Mod Rewrite For A Beginner
i have a question regarding an explanation as to what exactly is mod_rewrite and what do i use it for, if you want to see experts explaning what is mod rewrite read this page [336], Last Updated: Sat May 18, 2024
kupbta
Wed Feb 16, 2011
1 Comments
599 Visits
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
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"
https://www.wallpaperama.com/forums/_wrxwmz.html