Menu Content

Podpora

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

Profile for Judgenie

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

Signature

Posts

Posts

emo
I am working a new HTML pages which will replace a Joomla website on same domain. The Joomla site is using SEF URLs ex.

www.mydomain.com/en for home page in English
www.mydomain.com/about-us for about us page in English
www.mydomain.com/fr 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 www.mydomain.com/fr/index-fr.html (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
More
Přihlášení uživatele Prázdný