Welcome Guest, Not a member yet? Register   Sign In
Htaccess issue (The page isn't redirecting properly)
#5

[eluser]Ninjabear[/eluser]
[quote author="rogierb" date="1270575309"]By the look of your url you have CI installed in a subfolder.
Code:
RewriteRule ^(.*)$ /index.php/$1 [L]
Will point to /index.php based on your root of www.danielsportfolio.co.uk/

If you want it to piont to www.danielsportfolio.co.uk/codigniter/ you need a Rewrite Base

Code:
RewriteBase /codeigniter/

You need to change the rewrite rule aswell, remove the slash:
Code:
RewriteRule ^(.*)$ index.php/$1 [L]
[/quote]

Excellent help, it's working now. The only instance it doesn't work is if I put something like:

Code:
www.danielsportfolio.co.uk/codeigniter


It works in this instance though:
Code:
www.danielsportfolio.co.uk/codeigniter/


Messages In This Thread
Htaccess issue (The page isn't redirecting properly) - by El Forum - 04-05-2010, 09:07 AM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 04-05-2010, 08:12 PM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 04-06-2010, 05:53 AM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 04-06-2010, 06:35 AM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 04-06-2010, 06:56 AM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 04-06-2010, 07:18 AM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 03-18-2011, 10:14 AM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 03-18-2011, 02:12 PM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 03-18-2011, 02:22 PM
Htaccess issue (The page isn't redirecting properly) - by El Forum - 03-18-2011, 02:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB