.htaccess - Rewrite urls using Apache PHP -


i have number of urls stored in database, , instead of adding rewrite rule in .htaccess every url, using following code in htaccess give control php code through following rewrite rule in apache:

rewriterule ^.*$ ./index.php 

a url mentioned in database, has corresponding original url. though, tricky situation comes when have serve content of url fetched db corresponding original url rewrite rules written in .htaccess. 1 solution implement same rewrite rules url fetched db in php written in apache original url, however, number of such original urls huge.

thus glad know solution if possible can make execution flow through rewrite rules mentioned in apache after processing inside php complete.

if have access main httpd.conf use rewritemap written in php.

other that, there no way can give control php apache apache can process further, not in same request anyway. 30x rewrite php let apache work on next request.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -