CMS的动态.htaccess
I am building a custom content management system for clients. It's similar to Joomla, but is alot easier to develop customized modules, components, etc. Obviously, they can change the name and alias of a webpage (article), and create menu items that are components and modules. I want to allow simple URLS using the alias. The problem I'm facing is updating the .htaccess when a user updates the alias.
I have dabbled very much in using .htaccess. I am just wondering if there's a way for a .htaccess file to dynamically rewrite URLS.
我正在为客户建立一个自定义内容管理系统。 它与Joomla类似,但是开发定制模块,组件等更容易。显然,他们可以更改网页(文章)的名称和别名,并创建作为组件和模块的菜单项。 我想使用别名允许简单的URL。 我遇到的问题是当用户更新别名时更新.htaccess。 p>
我在使用.htaccess方面非常涉足。 我只是想知道.htaccess文件是否有办法动态重写URL。 p> div>
Instead of using .htaccess I ended up using $_SESSION variables and MySQL to handle a login session. Much easier.