Welcome Guest, Not a member yet? Register   Sign In
Removing index.php
#1

[eluser]HSKrustofsky[/eluser]
I know there are a million post on this, but I have been trying to use every example, and my problem has yet to be fixed.

I have it to where it successfully removes index.php. The main home page loads, but when I click on a navigation link, nothing shows up like a dead link.

Here is my .htaccess file:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /DCS/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>  

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>

I checked my Apache settings, and mod_rewrite is activated, and I have already changed everything needed in the config.php file. I have no idea what else to do. Any suggestions? Thanks in advance.
#2

[eluser]KingSkippus[/eluser]
Take the trailing slash off of your RewriteBase line. (/DCS instead of /DCS/) Honestly, I don't know that that's the problem, but in all of the RewriteBase examples I've seen on Apache's web site, they don't have a trailing slash.

Also, what is the URL that is trying to be accessed when you click on one of your navigation links?
#3

[eluser]HSKrustofsky[/eluser]
Did what you told me, didn't work. It's all localhost. Using WAMP right now. So my base_url is set to http://localhost/DCS/.
#4

[eluser]KingSkippus[/eluser]
So when you hover over one of your navigation links, or you look at the HTML source, what is the href that it is pointing to?
#5

[eluser]HSKrustofsky[/eluser]
Lets say I am going to the about page. The href is pointing to http://localhost/DCS/about. I think that it's thinking that there needs to have the index.php/ after DCS/, but not finding it. Could that be the issue?




Theme © iAndrew 2016 - Forum software by © MyBB