• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access to IPB folder

#1
[eluser]Leo78[/eluser]
Hey, I have the website which is built on the Codeigniter.

After I uploaded & install IPB (forum) I don't have access, because the htaccess file I guess or I don't know. the url of the forum is http://www.domain.com/forum/.
What should I write in the htaccess file to check it first before the Codeigniter procedure?

I tried this but it doesn't work well (because it's not really solution..):

Code:
RewriteRule ^forum/(.*)/$ forum/index.php?/$1 [L]

#2
[eluser]PhilTem[/eluser]
Be sure to set you RewriteBase correctly and according to your folder structure.

Have a .htaccess in your webroot? Try
Code:
RewriteBase /

Have a .htaccess in the forum-folder? Try
Code:
RewriteBase /forum/

#3
[eluser]CroNiX[/eluser]
Use an htaccess that ignores real files/directories.
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
If the request is not an existing (f)ile
And
If the request is not an existing (d)irectory
Process the request with CI's index.php, else process (the existing file/directory) normally

#4
[eluser]Leo78[/eluser]
First of all thank you for your helping guys.

@PhilTem - It exists, but doesn't affect anyway.

@CroNiX - I have already used it, the problem is that for example the following address:
Code:
http://www.domain.com/forum/user/1-flank/
There isn't any file / directory with the name user, and of course 1-flank so the condition doesn't affect.

By the way,
The main page of the forum is working -
Code:
http://www.domain.com/forum/


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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