Fork me on GitHub




(1) 2 »


SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Régulier
Inscrit: 24/04/2004 13:29
Messages: 442
Bonjour,

je débute actuellement un nouveau site hébergé chez 1and1.fr, et je comptai sur l'excellent module SmartSection pour offrir des URLs comprehensives aux visiteurs et aux bots, mais je ne parviens pas à configurer correctement mon fichier .htaccess...


Mon .htaccess Citation :
RewriteEngine On
RewriteBase /
RewriteRule ^photos\.([a-z]+)\.([0-9.]+)/ modules/photos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^videos\.([a-z]+)\.([0-9.]+)/ modules/videos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ modules/smartsection/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ modules/videos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ modules/blagues/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ fun/videos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ fun/blagues/seo.php?seoOp=$1&seoArg=$2 [L]



Mon mainfile.php Citation :
// enable SEO (HACK)
define("SEO_ENABLED", "rewrite");
define("SMARTSECTION_SEO_ENABLED", "rewrite");
define("blagues_SEO_ENABLED", "rewrite");
define("videos_SEO_ENABLED", "rewrite");



Je précise que j'ai cloné, comme vous avez pu voir, Smartsection en "blagues" et "videos", et que j'ai utilisé le hack pour rewriter le repertoire "modules" en "fun". (oui, c'est un site d'humour, pas encore ouvert, en developpement )



Il est écrit dans le fichier texte attaché au module SmartSection que, pour activer la SEO / les URLs rewrite, il faut suivre ces indications

Citation :
How can I enable SEO for SmartSection?
======================================
Core SEO functionality for this module lies in smartsection/include/seo_functions.php. It expects a PHP constant named 'SEO_ENABLED' with possible values from 'rewrite' or 'path-info'. It should be defined in <xoops_root>/mainfile.php as followings.

define("XOOPS_GROUP_ADMIN""1");
    
define("XOOPS_GROUP_USERS""2");
    
define("XOOPS_GROUP_ANONYMOUS""3");
  
  
// enable SEO
  
define("SEO_ENABLED""rewrite");
  
    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        require 
XOOPS_ROOT_PATH."/include/common.php";
    }


You must copy (or merge) extra/seo/sample.htaccess to <xoops_root>/.htaccess (for rewrite). If your web server does not support rewrite then path-info should be used.



.htaccess Citation :
RewriteEngine On
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ modules/smartsection/seo.php?seoOp=$1&seoArg=$2



Voilà, je ne crois pas avoir oublié quoi que ce soit, mais je crois savoir que 1and1.fr "bride" les fonctionalités, et qu'il faut adapter son .htaccess à leur serveur.
La question est donc : comment ?!


Merci d'avance !

Posté le : 20/07/2006 21:48

Edité par SpeedAirMan sur 23/07/2006 15:22:08

[url=http://humour-fun.net/videos.item.153/catastrophe-plateforme-petroliere-chuai.html]effondrement d'une plateforme pétrolière íƒÂ  Chuai ! Un commando d'activistes écologistes pourrait en íƒÂªtre l'auteur..
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Régulier
Inscrit: 10/03/2006 23:50
Messages: 138
RewriteEngine On
RewriteBase 

RewriteRule ^photos.([a-z]+).([0-9.]+)/ modules/photos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^videos.([a-z]+).([0-9.]+)/ modules/videos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ modules/smartsection/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ modules/videos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ modules/blagues/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ fun/videos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ fun/blagues/seo.php?seoOp=$1&seoArg=$[L]

a la place faut mettre les /

ce qui donne

RewriteEngine On
RewriteBase 

RewriteRule ^photos.([a-z]+).([0-9.]+)/ [color=cc0000]/[/color]modules/photos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^videos.([a-z]+).([0-9.]+)/ [color=cc0000]/[/color]modules/videos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ [color=cc0000]/[/color]modules/smartsection/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ [color=cc0000]/[/color]modules/videos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ [color=cc0000]/[/color]modules/blagues/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ [color=cc0000]/[/color]fun/videos/seo.php?seoOp=$1&seoArg=$[L]
RewriteRule ^smartsection.([a-z]+).([0-9.]+)/ [color=cc0000]/[/color]fun/blagues/seo.php?seoOp=$1&seoArg=$[L]


Mais je ne suis pas sure si c'est la bonne reponse

A+

Posté le : 20/07/2006 22:59
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Régulier
Inscrit: 24/04/2004 13:29
Messages: 442
Merci, mais ce n'est pas la bonne solution apparemment : marche toujours pas, j'obtiens une erreur 404 : Fichier non trouvé.


Voici mon .htaccess actuel complet Citation :

DirectoryIndex index.php

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteRule ^fun/(.*)$ modules/$1 [L]

RewriteRule ^photos\.([a-z]+)\.([0-9.]+)/ /modules/photos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^videos\.([a-z]+)\.([0-9.]+)/ /modules/videos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^photos\.([a-z]+)\.([0-9.]+)/ /fun/photos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^videos\.([a-z]+)\.([0-9.]+)/ /fun/videos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ /modules/smartsection/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ /modules/videos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ /modules/blagues/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ /fun/videos/seo.php?seoOp=$1&seoArg=$2 [L]
RewriteRule ^smartsection\.([a-z]+)\.([0-9.]+)/ /fun/blagues/seo.php?seoOp=$1&seoArg=$2 [L]


# source: http://www.webmasterworld.com/forum13/687-9-15.htm
# some of these are commented out, they are possibly legitate download agents
# if you don't want anyone downloading your sites, uncomment them

RewriteCond %{X-moz} ^prefetch
RewriteRule ^.* - [F]
RewriteCond %{HTTP_REFERER} q=Guestbook [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^CherryPicker [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Crescent [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailCollector [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GornKer [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^Irvine [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft.URL [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^omniexplorer_bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} dloader(NaverRobot) [OR]
RewriteCond %{HTTP_USER_AGENT} ^puf [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SearchExpress [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Siphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebBandit [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus [OR]
RewriteCond %{HTTP_USER_AGENT} ^ZyBorg

RewriteRule ^.* - [F,L]

Posté le : 21/07/2006 00:50

[url=http://humour-fun.net/videos.item.153/catastrophe-plateforme-petroliere-chuai.html]effondrement d'une plateforme pétrolière íƒÂ  Chuai ! Un commando d'activistes écologistes pourrait en íƒÂªtre l'auteur..
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Hola,

Tiens j'en ai une de belle de 404 :

Attacher un fichier:



jpg  404.jpg (33.91 KB)
14260_44c00cf6177c2.jpg 500X303 px

Posté le : 21/07/2006 01:08

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Aspirant
Inscrit: 29/02/2004 13:59
Messages: 90
Bonjour,
tu as dupliqué combien de fois le modules smartsection?
comment les modules cloner s'appellent t'ils?
dans quel répertoire se trouvent ils?
as tu réussis a faire fonctionner SEO avec smartcsection de base avant de cloner?
as tu réaliser le clonage des modules avec clone.php?

dans ton mainfile.php pour activer SEO c'est:
define("SMARTSECTION_SEO_ENABLED""rewrite");


Citation :
et que j'ai utilisé le hack pour rewriter le repertoire "modules" en "fun". (oui, c'est un site d'humour, pas encore ouvert, en developpement )


de quel hack parle tu ? de SEO?

Posté le : 21/07/2006 14:54
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Régulier
Inscrit: 24/04/2004 13:29
Messages: 442
lol, merci Kris ! Cette image me servira pitet'


Citation :
1° tu as dupliqué combien de fois le modules smartsection?
Quand j'ai posté mon problème : 2 fois. Depuis j'ai ré-éssayé avec un module nommé 'test'.


Citation :
2° comment les modules cloner s'appellent t'ils?
Les 2 premiers : 'blagues' et 'videos'.


Citation :
3° dans quel répertoire se trouvent ils?
Respectivement : 'blagues' et 'videos'.


Citation :
4° as tu réussis a faire fonctionner SEO avec smartcsection de base avant de cloner?
Je viens d'essayer (sans désinstaller les autres pour autant). La SEO avec le module SmartSection NON-cloné fonctionne correctement. (aucune erreur 404)


Citation :
5° as tu réaliser le clonage des modules avec clone.php?
Oui, bien sûr, et c'est enfantin ! Bravo !



Citation :
Citation :
et que j'ai utilisé le hack pour rewriter le repertoire "modules" en "fun". (oui, c'est un site d'humour, pas encore ouvert, en developpement )


6° de quel hack parle tu ? de SEO?
http://www.peak.ne.jp/xoops/md/news/article.php?storyid=54




J'aimerai préciser également que lorsque je me rend dans l'un des modules cloné dont la SEO est activé, les URLs proposées sont bien du type " http://site.com/test.category.1/teeeeeeeest-cat.html ", sauf qu'elles affichent une erreur 404 au lieu de l'article selectionné.

(help

Posté le : 21/07/2006 20:02

[url=http://humour-fun.net/videos.item.153/catastrophe-plateforme-petroliere-chuai.html]effondrement d'une plateforme pétrolière íƒÂ  Chuai ! Un commando d'activistes écologistes pourrait en íƒÂªtre l'auteur..
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Supporter Xoops
Inscrit: 09/01/2005 13:37
De Breizh
Messages: 16972
Je pense que tu as vidé le dossier templates_c, des fois que ...

Posté le : 22/07/2006 01:52

La connaissance s'accroît quand on la partage ...
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Aspirant
Inscrit: 29/02/2004 13:59
Messages: 90
Hello,

Bon ben nous sommes deux dans ce cas, j'ai exactement le même problème que toi! :banane:

Impossible de combiné simplified URL et SEO sur smartsection.
Je cherche depuis déja plus d'une semaine sans succés!

Les deux fonctionnent a merveille séparement mais conjointement ca pose problème apparement.

PS : Je précise que j'ai pas compliqué la chose en dupliquant smartsection.Ceci dit ca change rien.

(help

Posté le : 22/07/2006 10:41
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Régulier
Inscrit: 24/04/2004 13:29
Messages: 442
Citation :
Impossible de combiné simplified URL et SEO sur smartsection.
Bah je n'utilise pas "simplified URL", je souhaitai juste la SEO sur SmartSection, mais avec le module cloné ça ne semble pas fonctionner pour moi.


Citation :
kris a écrit:
Je pense que tu as vidé le dossier templates_c, des fois que ...
Je viens de vider le dossier templates_c , ça ne règle pas le problème.


Je cherche toujours (help

Posté le : 22/07/2006 14:13

[url=http://humour-fun.net/videos.item.153/catastrophe-plateforme-petroliere-chuai.html]effondrement d'une plateforme pétrolière íƒÂ  Chuai ! Un commando d'activistes écologistes pourrait en íƒÂªtre l'auteur..
Partager Twitter Partagez cette article sur GG+
Re: SmartSection 2.1 : probl URL rewrite / SEO 1and1.fr
Régulier
Inscrit: 24/04/2004 13:29
Messages: 442
Le "path-infos" fonctionne et me donne des URLs comme celle là : http://example.com/modules/blagues/se ... besoin-de-compliment.html

Posté le : 22/07/2006 17:31

[url=http://humour-fun.net/videos.item.153/catastrophe-plateforme-petroliere-chuai.html]effondrement d'une plateforme pétrolière íƒÂ  Chuai ! Un commando d'activistes écologistes pourrait en íƒÂªtre l'auteur..
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
(1) 2 »



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

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

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