# "Mod\_rewrite" How do you achieve the URLs?

**URL:** <https://forum.phpvms.net/t/mod-rewrite-how-do-you-achieve-the-urls/3957>\
**Category:** General\
**Created:** [January 26, 2011, 5:08pm UTC](https://forum.phpvms.net/t/mod-rewrite-how-do-you-achieve-the-urls/3957 "2011-01-26T17:08:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nout\_Zon\_Executive](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/n/da6949/32.png) [@Nout\_Zon\_Executive](https://forum.phpvms.net/u/Nout_Zon_Executive)\
**Post date:** [January 26, 2011, 5:08pm UTC](https://forum.phpvms.net/t/mod-rewrite-how-do-you-achieve-the-urls/3957/1 "2011-01-26T17:08:10Z")

</div>

Hi Guys,

I have a question about the “mod\_rewrite” in phpVMS. I’m not sure if I can call it exactly that, because I know that Apache’s mod\_rewrite makes [site.com/page/cookies](http://site.com/page/cookies) refer to [site.com/index.php?page=cookies](http://site.com/index.php?page=cookies)

I was wondering how the URL system in phpVMS works such that i.e. [www.site.com/index.php/pilots](http://www.site.com/index.php/pilots) refers to [www.site.com/core/modules/pilots/pilots.php](http://www.site.com/core/modules/pilots/pilots.php)

Furthermore is there a way to manipulate this such that i.e. [www.site.com/pilots](http://www.site.com/pilots) has the same effect as [www.site.com/index.php/pilots](http://www.site.com/index.php/pilots)

Cheers,

Nout

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [January 28, 2011, 6:18pm UTC](https://forum.phpvms.net/t/mod-rewrite-how-do-you-achieve-the-urls/3957/2 "2011-01-28T18:18:09Z")

</div>

You can use htaccess to make /pilots to go index.php/pilots

It will auto lookup the module based on that name passed in. Any arguments after that are passed in as function arguments
