Pretty URL issue
Permalink
I have an issue with the "Pretty URL" option.
When I tick the "Pretty URL" box and Save, I get this error message :
It was not possible to detect your server kind. Here's the configuration sections for every supported server: please manually add the one relevant for you to your server configuration.
And then they give me a code :
It is unclear to me what I should do exactly to get the Pretty URL functioning.
I am a marketing guy, not an html or web expert, so please explain me with simple words. :) I am afraid of ruining the whole website if I am doing things uncorrectly.
Thanks a lot for your help
Olivier
When I tick the "Pretty URL" box and Save, I get this error message :
It was not possible to detect your server kind. Here's the configuration sections for every supported server: please manually add the one relevant for you to your server configuration.
And then they give me a code :
>>> For Apache <<< <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> >>> For nginx <<< location / { try_files $uri $uri/ /index.php?$query_string; }
It is unclear to me what I should do exactly to get the Pretty URL functioning.
I am a marketing guy, not an html or web expert, so please explain me with simple words. :) I am afraid of ruining the whole website if I am doing things uncorrectly.
Thanks a lot for your help
Olivier
https://www.veturgences-rennes.fr
In the root of your site you should have an .htaccess file, edit the file and past this code into it and then save the file.
<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>
Thank you : it has half way worked... :)
Now url without index.php work.
BUT I still get the same error message when I click on Pretty URL.
And the website still display index.php by default, and don't remove it automatically :
See an example here :https://www.veturgences-rennes.fr/index.php/numero-urgences...
Any idea ?
Now url without index.php work.
BUT I still get the same error message when I click on Pretty URL.
And the website still display index.php by default, and don't remove it automatically :
See an example here :https://www.veturgences-rennes.fr/index.php/numero-urgences...
Any idea ?
Clear your concrete5 cache and your browser cache
I have the same problem , have try to delete the cache, but don't work
http://www.otticamaremmi.com
i have concrete5-8.5.1
Enrico
http://www.otticamaremmi.com
i have concrete5-8.5.1
Enrico
This being caused by your canonical url.
Change it from this
To this
Change it from this
<link rel="canonical" href="http://www.otticamaremmi.com/index-php">
To this
<link rel="canonical" href="http://www.otticamaremmi.com">
where i can work around for change this setting?
i have this
i have this
Hmm...
Looks like you have created a folder called index-php and installed your site in that folder.
This has nothing to do with pretty urls because pretty urls works to hide the index.php (index[dot]php) part of the url.
You have index-php (index[dash]php) which is not a file name it is a file path.
So, I can only think that you have a folder named index-php which is what you are seeing in your url links
Looks like you have created a folder called index-php and installed your site in that folder.
This has nothing to do with pretty urls because pretty urls works to hide the index.php (index[dot]php) part of the url.
You have index-php (index[dash]php) which is not a file name it is a file path.
So, I can only think that you have a folder named index-php which is what you are seeing in your url links
well, maybe the mistake is that have rename the home page like index.php, and so i have create a folder index-php;
so the question is , how call Home page? if i desire will be index.php and not index-php
in the same time , i will try to change the path in the others page.
Enrico
so the question is , how call Home page? if i desire will be index.php and not index-php
in the same time , i will try to change the path in the others page.
Enrico
i have solved in in this way ,
is correct?
is correct?
I have attached an image showing the settings for my test site home page ...
ok, and what's happening if you typehttp://conc853/index.php
??
??
It is easy to discover your webserver type using the whois database search facility.