Welcome Guest, Not a member yet? Register   Sign In
.htaccess redirect not working
#1

[eluser]Unknown[/eluser]
Hey guys!

I noticed that, because my CodeIgniter directory is not the very root of my website, the .htaccess rules do not apply. Is it possible to generalize them to work only in a specific directory? For example:

public_html/sites/whatever/ci/index.php/controller/function
public_html/ci/index.php/controller/function

Is it possible to make a .htaccess file that turns both of these into the respective following address?

public_html/sites/whatever/ci/controller/function
public_html/ci/controller/function

Notice how the paths are different in both cases, but the index.php path was still removed from the URL. Is this achievable?




Theme © iAndrew 2016 - Forum software by © MyBB