Fork me on GitHub

Rapport de message :*
 

Re: URLrewriting, comment ca fonctionne(rait) dans le noyau xoops ?

Titre du sujet : Re: URLrewriting, comment ca fonctionne(rait) dans le noyau xoops ?
par Cesagonchu sur 11/10/2011 22:46:21

Je ne pense pas : XOOPS 2.6 Planning & Direction, mais ça date de 2010.

Mais tu peux encore le demander ici, il n'est pas trop tard ;)

Edit : ça a été demandé plusieurs fois apparemment, comme ici par kerkyra et ça va peut-être t'intéresser pour le code donné à mettre dans le .htacces :

Citation :
@redheadedrod mate perhaps i could help you with that project. it sounds interesting and I think this is something really really missing from xoops.

Moreover, we should have all configurations in the admin area (debuging, user level that will see debug info etc.)

we should also make a standart htaccess file for url rewriting

I use the following one,
-for redirecting to my page with www always in front of the url, -for custom error pages (i'm writing this bit of code trying to make it a bit more flexible),
-and to stop from hotlinking images.

Quote:


Options +FollowSymlinks

    ErrorDocument 404 
/error_pages/404.php
    ErrorDocument 403 
/error_pages/403.php

    RewriteEngine On
    rewritecond 
%{http_host} ^mysite.gr [nc]
    
rewriterule ^(.*)$ http://www.mysite.gr/$1 [r=301,nc]

    
RewriteCond %{HTTP_REFERER} !^http://(.+.)?mysite.gr/ [NC]
    
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?facebook.com [NC]
    
RewriteCond %{HTTP_REFERER} !^http(s)?://(apps.)?facebook.com [NC]
    
RewriteCond %{HTTP_REFERER} !^$
    
RewriteRule .(jpg|jpeg|png|gif|bmp)$ http://img190.imageshack.us/img190/8210/stoleni.png [NC,R,L]

perhaps this could help someone.

Finally I think there should be a major database redesign so as to apply multilingual data, adding the language parameters in the tables and fields holding actual content. perhaps ids of that fields shouldn't be autoincrementing and unique? we could have the same ids with data in different languages.

This will give developers a mechanism to write their code with multilanguage support in mind. Xlanguage is very stiff at the moment.


Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

47 Personne(s) en ligne (38 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 47 | Plus ...