Index.php stays visible on subpages
Permalink
Hi,
Currently we have a site running: moederagnes.be
When you visit a subpage index.php is visible. When going to SEO and enabling pretty URL's i get this message : "it was not possible, to identify server type... " I edited the .htaccess file with :
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
With no effect. This is the first time we've experienced this problem.
Concrete version 8.0.3. Apache server.
Currently we have a site running: moederagnes.be
When you visit a subpage index.php is visible. When going to SEO and enabling pretty URL's i get this message : "it was not possible, to identify server type... " I edited the .htaccess file with :
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
With no effect. This is the first time we've experienced this problem.
Concrete version 8.0.3. Apache server.
Also depends on where your htaccess file is compared to the site files.
the htaccess file is located at the root of the ftp
Hi,
I don't think the server is running virtual hosts?
We don't have this problem with al our other sites that uses the same hosting: one.com
So i just copied the .htaccess file from one of those.
Full .htaccess code:
The .htaccess file is located on the root of the FTP.
I don't think the server is running virtual hosts?
We don't have this problem with al our other sites that uses the same hosting: one.com
So i just copied the .htaccess file from one of those.
Full .htaccess code:
# -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L] </IfModule> # -- concrete5 urls end -- <IfModule mod_deflate.c> # Force compression for mangled headers. #http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-g... <IfModule mod_setenvif.c> <IfModule mod_headers.c>
Viewing 15 lines of 81 lines. View entire code block.
The .htaccess file is located on the root of the FTP.
If you are running you own apache server its actually more secure to put the htaccess info into the virtual host config files rather than use an .htaccess file. Htaccess file is so web hosts can give shared hosting customers a little control over how the server runs their site, but its not needed if you are the apache owner youself.
A basic virtual host file running concrete5 with pretty URLS would look like this:
Additionally, make sure the apache mod_rewrite is enabled, via:
systemctl restart httpd.service