Jump to content

URL with folder name


weee

Recommended Posts

Is it possible to create a rewrite rule where it will always point to the php script rather than show the contents of the directory?

 

For example, I would like localhost/images

RewriteRule ^images/?$ index.php?act=images

 

But I get:

localhost/images/?act=images

 

because I have a folder called images.  Is there anyway to get around this and force mod_rewrite to by default "mask" the directory?

 

Thanks!

weee

Link to comment
https://forums.phpfreaks.com/topic/219465-url-with-folder-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.