Question: I am new to codeigniter, infact using it first time. I am editing a script developed using CodeIgniter. It is GroupScript - clone of famous Groupon. In this script, there is a facility to select different cities. By default, links to different cities are like :

`domain.com/frontend/profile/selectCity/[city_id]`

I want some uri routing example so that i can redirect domain.com/[city\_id] to 

`domain.com/frontend/profile/selectCity/[city_id]`

I studied some examples that helped also. The best far i could get was 

`domain.com/index.php/[city_id]`

was being redirected to 

`domain.com/frontend/profile/selectCity/[city_id]`

Code used was : `$route[’(:num)’] = “frontend/profile/selectCity/$1”;`

I am not able to eliminate the `index.php` in url. Any help would be appreciated. If i could eliminate `index.php` stuff from url then I am done.

Demo groupscript is here to understand what i expect : demo.groupscript.net

Answer: 
Create a file named 'abc' which contains:

```
#!/bin/sh
/usr/bin/env python -m abc

```

or is that giving away too much valuable source code if they can read that?

Note also that .pyc files aren't portable between different versions of Python. Redistributing the source really would be best for that reason quite apart from causing less annoyance to your users and less cost to yourself (in support time if nothing else).
If you're looking to obfuscate your code, see [this discussion on protecting Python code](https://stackoverflow.com/q/261638/118160). Basically, you can't wantonly distribute the Python bytecode which comprises the `.pyc` file, and there's no way to prevent people from peeking into your code.