Removing /index.php with .htaccess

Kristof_Sals wrote:
Hi,

I’m not able to remove index.php from my url.

Code:
http://www.i-like.be/muziekclips/

I have installed a plug-in, so i can see the rewriting.

WordPress Generated .htaccess Rules

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /muziekclips/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /muziekclips/index.php [L]
</IfModule>

Try:

Code:
Options +FollowSymLinks
DirectoryIndex index.php /muziekclips/index.php index.html

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /muziekclips/

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php(.*)\ HTTP/ [NC]
RewriteRule ^index\.php(.*)$ http://www.i-like.be/muziekclips/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /muziekclips/index.php [L]

</IfModule>

Oh wait a sec, I see by looking at the source code for your site that your blog is most-definately the problem as index.php is included in all your source code by wordpress.. Go to your Admin panel under Options -> Permalinks and make sure index.php isn’t there.

If some of this doesn’t work then use the rewriterules plugin by askapache and copy the results here.

Advertisements

2 thoughts on “Removing /index.php with .htaccess

  1. > Permalink: /index.php/%year%/%monthnum%/%postname%/
    > No .htaccess file found or not writable
    > mod_rewrite not found
    > Using pathinfo style index permalinks
    > Not using mod_rewrite permalinks

    How do I solve this issue?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s