Hi
I’m having problems trying to remove index.php and the .htaccess file with a website hosted on a Fasthosts server.
We’ve been trying over the last few days all the possible options that are listed on the wiki and the EE guide.
We now have the following that is nearly working:
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /beta/index.php?/$1 [L]
# If 404s, “No Input File” or every URL returns the same thing
# make it /index.php?/$1 above (add the question mark)
</IfModule>
We are linking the stylesheets in an includes file using the following:
<link href=”?css=style/layout” rel=“stylesheet” type=“text/css” media=“screen” />
Under General Configuration the field for the name of site index page is left blank.
The images are referenced into the images folder: images/logo.png
As you can see from the following pages the home and pages in some of the template groups are fine but if you go to a dynamic news item then the images do not appear.
http://www.swisher.co.uk/beta/
http://www.swisher.co.uk/beta/company
http://www.swisher.co.uk/beta/news but if you go a third level deep like in the news article
http://swisher.co.uk/beta/news/article/swisher-uk-acquired-by-environmental-biotech then the images are lost.
Many thanks
James