• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whenever I enter a url which isn't the default, I get redirected to dir above root

#11
[eluser]gunnarflax[/eluser]
[quote author="toopay" date="1302647181"]open your .htaccess file, and replace it ALL with this...
Code:
RewriteEngine On
RewriteBase /admin/

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ admin/index.php?/$1 [L]
[/quote]

With this code I get an Internal Server Error (500) Tongue

#12
[eluser]toopay[/eluser]
i post two configuration, use the second...

#13
[eluser]gunnarflax[/eluser]
Tried the second and still get the Internal Server Error :/

#14
[eluser]toopay[/eluser]
how about this....
Code:
RewriteEngine On
RewriteBase /admin/

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /admin/index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /admin/index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /admin/index.php?/$1 [L]

#15
[eluser]gunnarflax[/eluser]
Now it works as it should Smile thank you all very much for the help!

#16
[eluser]toopay[/eluser]
I found bunch similar thread from this forum : setting up a project under 'localhost' usually give you some trouble, one of them is what you face above.

Ussualy (again), you will face another problems while you deploy your project into cloud server, which you didn't expected when you develop in your local machine. One from many way solution is to set your developing environment as close as your live result. Read this thread may help you do that.

#17
[eluser]gunnarflax[/eluser]
Thanks, I'll read that thread Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.