CodeIgniter Forums
url rewriting index.php on tests subdirectories - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: url rewriting index.php on tests subdirectories (/showthread.php?tid=64640)



url rewriting index.php on tests subdirectories - Charles R - 03-16-2016

Hi,
I use apache vhost parameters because htacces are not allowed on my server (the url rewriting for delete the index.php in the url works like a charm)

My problem is on my releases-test subdirectories : before put my new release in production mode i have to test it on the server

ex. for myappli.com my releases tests are here :
myappli.com/releases/1.0.2
myappli.com/releases/1.0.3
...
the release version number change everytime

I did not find the correct url rewriting for a parent subdirectory wich I don't know the name...
In everything I tried, Once I have a CI 404, once I have a apache 404, once I have a 500

I want to have :
/releases/???/index.php/controller/method/parameters -> /releases/???/controller/method/parameters

Any help would be appreciated

Thanks in advance


RE: url rewriting index.php on tests subdirectories - Charles R - 04-01-2016

Hi,
maybe my message was not clear.. Sorry for my english, i'm french so I use an online traductor.

I can clarify what points?


RE: url rewriting index.php on tests subdirectories - w3w3b - 04-19-2016

(03-16-2016, 07:09 AM)CharlesĀ R Wrote: Hi,
I use apache vhost parameters because htacces are not allowed on my server (the url rewriting for delete the index.php in the url works like a charm)

My problem is on my releases-test subdirectories : before put my new release in production mode i have to test it on the server

ex. for myappli.com my releases tests are here :
myappli.com/releases/1.0.2
myappli.com/releases/1.0.3
...
the release version number change everytime

I did not find the correct url rewriting for a parent subdirectory wich I don't know the name...
In everything I tried, Once I have a CI 404, once I have a apache 404, once I have a 500

I want to have :
/releases/???/index.php/controller/method/parameters -> /releases/???/controller/method/parameters

Any help would be appreciated

Thanks in advance

Hi Charles R im Carlos R jeje. Here you have an example about your issues for de url

There are two possibilities , the first is to add the absolute path of our website redirect RewriteRule ^ (. *) $ Http : // localhost /trabajos/index.php/$1 [ L ] , this will do if our apache server does not have set up a virtual host. Or will RewriteRule ^ ( . *) $ /trabajos/index.php/$1 [ L ] in the opposite case . With this we obtain the server translates a URL like the following

More info in my blog http://www.w3w3b.com/blog/noticia/configuraci%C3%B3n-de-codeigniter-para-eliminar-index.php-de-la-url