ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Urgent: .htaccess rewrite URL issue

October 30, 2013 8:15am

Subscribe [1]
  • #1 / Oct 30, 2013 8:15am

    N.Srinivas

    1 posts

    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..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases