Hi, I got a lot of questions today
. I have a multilingual site and want to reflect the different languages in the urls. The problem is all the file names in my language folders are named the same and there are a lot of them. for eg.:
de/kontakt.php
en/kontakt.php
fr/kontakt.php
I know it was not really smart to name them all the same, but I did not have an idea how to link them automated to each other when named differently. Anyway ...
Is it possible when pretty urls are enabled to rename the urls in the .htacces?
Thank you very much!
regards Christoph

de/kontakt.php
en/kontakt.php
fr/kontakt.php
I know it was not really smart to name them all the same, but I did not have an idea how to link them automated to each other when named differently. Anyway ...
Is it possible when pretty urls are enabled to rename the urls in the .htacces?
- Code: Select all
#about.php
RewriteRule ^about$ "$0/" [R=301,L,QSA]
RewriteRule ^about/$ about.php [L,QSA]
RewriteRule ^about/.*?([^\.\/]*)\.html$ about.php?pname=$1 [L,QSA]
RewriteRule ^about/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ about.php?d=$1$2$3 [L,QSA]
RewriteRule ^about/[^\.]*?([^/\.]*)/$ about.php?fname=$1 [L,QSA]
RewriteRule ^about/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
Thank you very much!
regards Christoph