Menu Content


> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Profile for Judgenie

  • Time Zone: GMT +0:00
  • Local Time: 00:53
  • Posts: 1
  • Profile Views: 49
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown




I am working a new HTML pages which will replace a Joomla website on same domain. The Joomla site is using SEF URLs ex. for home page in English for about us page in English for home page in french
ans so on...
Target Pay and Benefits
am using .htaccess to try to remove .html file extension (first 4 lines) and to keep the /en and /fr in the URLs (last line). Have moved all the site content in the /en sub folder and index-fr.html only in the /fr sub folder. The goal is that by default the visitor will reach the English version of the site. He can then shift to French version from there.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]

RedirectMatch ^/$ /en/
The first part is not getting rid of the file extensions. I guess am missing something here.
The redirection is working fine for EN but site layout is being broken when I go to (since I guess it's looking for CSS in the FR folder and I would prefer avoid duplicating CSS, scripts etc...)
I may be completely doing it the wrong way here. Any thoughts welcome.
How do I Keep SEF UR ...
Category: General
Přihlášení uživatele Prázdný