Votre question

URL Rewriting et le cms Joomla!

Tags :
  • Référencement
  • Programmation
Dernière réponse : dans Programmation
29 Avril 2007 01:00:42

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/option,com_remository...

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

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

Autres pages sur : url rewriting cms joomla

29 Avril 2007 13:30:04

up ! ;) 
Tom's guide dans le monde
  • Allemagne
  • Italie
  • Irlande
  • Royaume Uni
  • Etats Unis
Suivre Tom's Guide
Inscrivez-vous à la Newsletter
  • ajouter à twitter
  • ajouter à facebook
  • ajouter un flux RSS