Hello Every One,
I am converting an old core php site in to CodeIgniter.
in that core php some subfolders exist with two files:
1. www/IMB/.htaccess
2. www/IMB/index.php
http://localhost/IMB/PLXZ-6460-Imst.html when this url is executed then .htaccess is transfering it to .index.php and fetching the data and displaying.
Now in Codeigniter I want like this:
when I execute the below url :
http://localhost/CI_Folder/PLXZ-6460-Imst.html
should fetch the data from :
http://localhost/CI_Folder/index.php/myController/myMethod
After execution of page I want to display only .html url like:
http://localhost/CI_Folder/PLXZ-6460-Imst.html
I do not want to show the CI url.
1). I have tried with .htaccess url rewrite:
RedirectMatch “PLXZ-([0-9]+)-([^-]+)(.*).html$” /CI_Folder/index.php/myController/myMethod/?plxz=$1
2). I have also tried with routes.php but not working.
Please provide any .htaccess solution which shows .html url and execute the codeigniter view.
Thanks in advance..