Is this htaccess code really right ?
PermalinkI have to say I am completly lost with the url rewriting thing ... I've been reading about 50 different posts and the documentation trying any possible way but I'm getting nowhere. Hope someone will be able to help ...
What I'm trying to do is enable pretty urls , and get rid of the index.php that always shows in the url (index.php/section/file.php)
My configuration at the moment is as follow:
My htaccess has
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
My main menu links have this format index.php?cID=223
My issues :
1 - Urls like thishttp://mysite.com/en/something do not work (internal server error) buthttp://mysite.com/index.php/en/something... works (it needs the index.php)
2 - When I click a link (ie : index.php?cID=223) fromhttp://mysite.com/index.php/en/something... I get a 404 error because the url is converted tohttp://mysite.com/index.php/en/index.php?cID=191...
My doubts
2 - Am I doing the right thing linking to pages this way index.php?cID=223 ? Or maybe should it be something else ?
1 - The ht.access does go in the htt_docs or www folder right ?
Anyone would be kind enough to tell me what I am doing wrong and what I should be doing to get all this working please ?
Many thanks in advance ....
Htacces is in the concrete directory and chmod as it should...
Options +FollowSymLinks RewriteEngine on RewriteBase /it/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
Supposedly , if I want to get to a page in English I should be able to do so using the urlhttp://mysite.com/en/nameoftheresurce...
But it does not work that way for me , I have to puthttp://mysite.com/index.php/en/nameoftheresurce... to get to it , that is one thing...
http://www.concrete5.org/documentation/how-tos/editors/building-sit...
Does this site look like what you want (see link at bottom of above URL)?
Is concrete5 in / or sub-directory /en/ ?