Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] index.php removal instructions aren't exactly working
#1

[eluser]Jakobud[/eluser]
First of all, I did a search for this type of topic and found a lot of them but nothing seemed to describe my issue.

Yes I have read the User Guide and followed the simple instructions to add this to my .htaccess:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Simple enough. I tried testing my pages from the blog video tutorial:

Code:
http://www.mydomain.com/blog

It works! Awesome...

But then I notice that when I mouseover my comment links, it wants to take me to this type of url:

Code:
http://www.mydomain.com/index.php/blog/comments/1

Hmmm... I click on those links and thats exactly the URL it takes me to. So apparently the .htaccess rule doesn't seem to work except for the primary (index) function in the Blog class?

Well I continued reading and looking at threads and found someone discussing a setting in the config.php. So I found this:

Code:
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = "index.php";

Oh okay, so I just change it to this:

Code:
$config['index_page'] = "";

Sounds like that should work. Now I go back to my blog:

Code:
http://www.mydomain.com/blog

First page comes up easy enough. Mouse over my comment links and I see this:

Code:
http://www.mydomain.com/blog/comments/1

So far so good. I click my comment links and...

Takes me here:

Code:
http://www.mydomain.com/blog/comments/1

EXCEPT its still showing the blog view instead of the comment view...

So I am stumped as to why this isn't working for me. Any thoughts or hints or can anyone point me in the right direction?


Messages In This Thread
[SOLVED] index.php removal instructions aren't exactly working - by El Forum - 10-31-2009, 10:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB