Tom's Guide > Forum > Programmation > URL Rewriting et le cms Joomla!

URL Rewriting et le cms Joomla!

Forum Programmation : URL Rewriting et le cms Joomla!

TomsGuide.com : 800 000 inscrits répondent à toutes vos questions high-tech et informatique. Pour obtenir de l'aide, inscrivez-vous gratuitement !
Mot :    Pseudo :           
 

Bonsoir tout le monde !

J'ai mis en ligne un site utilisant le portail joomla! et j'ai appliqué l'url rewriting pour avoir un meilleur référencement ...
Mais je rencontre un problème :

Les URLS s'affichent comme ceci :

http://www.lastskin.net/component/ [...] emository/

et je voudrais qu'à la place de "com_remository" il y ait "telechargements" par exemple, cad :

http://www.lastskin.net/mods/option,telechargements/

Voici le fichier .htaccess qui est à la base de mon site

Code :
  1. ##  Can be commented out if causes errors, see notes above.
  2. Options +FollowSymLinks
  3. #
  4. #  mod_rewrite in use
  5. RewriteEngine On
  6. #  Uncomment following line if your webserver's URL
  7. #  is not directly related to physical file paths.
  8. #  Update Your Joomla!/MamboDirectory (just / for root)
  9. # RewriteBase /
  10. ########## Begin - Joomla! core SEF Section
  11. ############# Use this section if using ONLY Joomla! core SEF
  12. ## ALL (RewriteCond) lines in this section are only required if you actually
  13. ## have directories named 'content' or 'component' on your server
  14. ## If you do not have directories with these names, comment them out.
  15. #
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]         ##optional - see notes##
  19. RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
  20. RewriteRule ^(content/|component/) index.php
  21. #
  22. ########## End - Joomla! core SEF Section
  23. ########## Begin - 3rd Party SEF Section
  24. ############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
  25. #
  26. #RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]         ##optional - see notes##
  27. #RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$  [NC]
  28. #RewriteCond %{REQUEST_FILENAME} !-f
  29. #RewriteCond %{REQUEST_FILENAME} !-d
  30. #RewriteRule (.*) index.php
  31. #
  32. ########## End - 3rd Party SEF Section
  33. ########## Begin - Rewrite rules to block out some common exploits
  34. ## If you experience problems on your site block out the operations listed below
  35. ## This attempts to block the most common type of exploit `attempts` to Joomla!
  36. #
  37. # Block out any script trying to set a mosConfig value through the URL
  38. RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
  39. # Block out any script trying to base64_encode crap to send via URL
  40. RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
  41. # Block out any script that includes a <script> tag in URL
  42. RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
  43. # Block out any script trying to set a PHP GLOBALS variable via URL
  44. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  45. # Block out any script trying to modify a _REQUEST variable via URL
  46. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  47. # Send all blocked request to homepage with 403 Forbidden error!
  48. RewriteRule ^(.*)$ index.php [F,L]
  49. #
  50. ########## End - Rewrite rules to block out some common exploits



Mais pour moi c'est du chinois ... quelqu'un pourrait me filer un petit coup de pouce ? ;)

Merci !

------------------------------ Mon blog sur la custo
Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.
- 0 +

up ! ;)

------------------------------ Mon blog sur la custo
Répondre à _zn_
Tom's Guide > Forum > Programmation > URL Rewriting et le cms Joomla!
Aller à :

Il y a 1789 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens