mod rewrite - RewriteRule redirect /pages/view/about to index.php?pages/view/about -
I've created the .httaccess file under my directory "codeIgniter"
I'm trying Http Http://www.domain.com/codeIgniter/pages/view/about http://www.domain.com/codeIgniter/index.php?pages/view/about
Redirect my current Httaccess File is
+ Rewrite rules on follow-up links ^ codeIgniter / pages /(.*)$ $ 1 [L]
But my page is not redirecting. How should I change my .httaccess file?
Try changing your rewrite rule with the following:
< Code> Reveries ^ (. *) CodeIgniter / pages /(.*)$ http://www.domain.com/codeIgniter/index.php?pages/$2 [L]I suspect, the passing URL is more text in the beginning compared to "codinger / page ...". The Character symbol (^) is a symbol of the beginning of a string in RegEx.
However, if you are using CodeIgniter, have you enabled the query level only? Generally, when a framework is used as codeigner, then you want to embrace MVC and custom URL.
Comments
Post a Comment