Avec OVH j'arrive pas a.

WRInaute passionné
Bonjour,

j'ai mis l'URL rewrinting sur mon site. Tous fonctionne les pages se mettent bien en html. Mais quand je clique dessus elle me mettent un lien mort.
Mais toutes lespages que j'ai demander a être en .html fonctionne bien. Enfin dans les menu je voit que les liens se sont mis en .hmtl.
Mais c'est vraiment quand je clique dessus que le liens redirige vers une ERREUR 404.
Mon site est http://www.cololotwin.com


Faut-il activer quelques choss, si oui comment ? avec OVH.

Cordailement...
 
WRInaute impliqué
tu as bien uploader ton fichier .htaccess ou pas.

il faut faire attention que dans ton header.php qu'il soit bien en rapport a ce que tu as mis dans ton fichier .htaccess
 
WRInaute passionné
Oui, la header a exactement la même chose.
Voici mon ficier htacces.
# vérifier avant d'activer que le serveur apache permet l'utilisation des options
#Options +FollowSymlinks
#Options -Indexes

<Limit GET PUT POST>
order allow,deny
#Mettre ici les adresses ip à banir
#deny from 192.168.150.
deny from 200.
allow from all
</Limit>

# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>

<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

<Files ~ "\config.php$">
deny from all
</Files>

#Chemin de la page pour gérer l'erreur d'absence d'une ressource
# A adapter en fonction du site

ErrorDocument 404 http://www.cololotwin.com/modules.php?n ... ge&pid=150

#A activer seulement si vous posséder l'extension mod_rewrite sur apache
#RewriteEngine on
#RewriteCond %{HTTP_USER_AGENT} "Collage" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Custo" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Download Wonder" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "ESIRover" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "GetBot" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "GetURL" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "GetWeb" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "HavIndex" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "httrack" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "InfoSpiders" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Internet Explore" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Jeeves" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "jpeg hunt" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "KDD Explorer" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "LightningDownload" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "PBWF" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Shai'Hulud" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "SpiderBot" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "ssearcher100" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Templeton" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "vobsub" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "w3mir" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebBandit" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebCatcher" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "webcopier" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebCopy" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebFetcher" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebMirror" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebReaper" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "webvac" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebWalk" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "wGet" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "xGet" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "atSpider" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "autoemailspider" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "cherrypicker" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "DSurf" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "DTS Agent" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EliteSys Entry" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EmailCollector" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EmailSiphon" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EmailWolf" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Mail Sweeper" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "munky" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Roverbot" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "eCatch" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "MemoWeb" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Teleport Pro" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebCopier" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebZIP" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebEmailExtrac" [NC]
#RewriteRule .* - [F,L]
#RewriteRule ^index.html index.php

Mais j'ai regarder l'autre topic avec des modifs d'OVH et je crois que c'est pourtant bon.
 
WRInaute passionné
et

Enfaîte non je eme suis trompé, je n'est apas la même chose. Enfaîte c'est URL ewrinting pour phpnuke. Moi je les seulement télècharger. Mais voilà ce que j'ai dans header .php

// Insertion URL Rewriting
ob_start();
function replace_for_mod_rewrite(&$s) {
$urlin = array(
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)&mode=([a-z]*)&order=([0-9]*)&thold=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&new_topic=([0-9]*)'",
"'(?<!/)modules.php\?name=Stories_Archive&sa=show_month&year=([0-9]*)&month=([0-9]*)&month_l=([a-zA-Z]*)'",
"'(?<!/)modules.php\?name=Stories_Archive'",
"'(?<!/)modules.php\?name=Downloads&d_op=getit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownloaddetails&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=(Downloads\")'",
"'(?<!/)modules.php\?name=Reviews&rop=showcontent&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=write_review'",
"'(?<!/)modules.php\?name=Reviews&rop=postcomment&id=([0-9]*)&title=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=mod_review&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=del_review&id_del=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Reviews'",
"'(?<!/)modules.php\?name=Submit_News'",
"'(?<!/)modules.php\?name=Topics'",
"'(?<!/)modules.php\?name=Top&zx=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Top'",
"'(?<!/)modules.php\?name=FAQ'",
"'(?<!/)modules.php\?name=FAQ&myfaq=yes&id_cat=([0-9]*)&categories=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]+)&postdays=([0-9]+)&postorder=asc&start=([0-9]+)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]+)&topicdays=([0-9]+)&start=([0-9]+)'",
"'(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)'",
"'(?<!/)modules.php\?name=Content&pa=list_pages_categories&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&mark=topics'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&view=newest'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&highlight=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Forums&file=posting&t=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&(p|t)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=index'",
"'(?<!/)modules.php\?name=Sections&op=(printpage|viewarticle)&artid=([0-9]*)'",
"'(?<!/)modules.php\?name=Sections&op=listarticles&secid=([0-9]*)'",
"'(?<!/)modules.php\?name=Sections'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&lid=([0-9]*)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links'"
);

$urlout = array(
"article-\\1-\\2-\\3-\\4.html",
"article\\1.html",
"article\\1.html",
"article-topic-\\1.html",
"archive-\\1-\\2-\\3.html",
"archive.html",
"downloads-file-\\1.html",
"downloads-cats-\\1-\\2-\\3.html",
"downloads-cat-\\1.html",
"downloads-file-\\1-details-\\2.html",
"downloads.html\"",
"reviews-\\1.html",
"reviews-new.html",
"reviews-comment-\\1-\\2",
"reviews-\\1-edit.html",
"reviews-\\1-delete.html",
"reviews-sortby-\\1.html",
"reviews.html",
"submit.html",
"topics.html",
"top-\\1.html",
"top.html",
"faq.html",
"faq-\\1-\\2.html",
"postx\\1-\\2-\\3.html",
"forumx\\1-\\2-\\3.html",
"contentid-\\1.html",
"content-cat-\\1.html",
"markread\\1.html",
"forum\\1.html",
"newposts\\1.html",
"posts\\1-\\2.html",
"postlite\\1-\\2.html",
"fvote\\1.html",
"post\\1\\2.html",
"forums.html",
"section-\\1-\\2.html",
"section-\\1.html",
"sections.html",
"userinfo-\\1.html",
"userinfo-\\1.html",
"linksnew-\\1.html",
"linkop-\\1.html",
"ratelink-\\1-\\2.html",
"viewlink-\\1.html",
"links-\\1-\\2-\\3.html",
"link-\\1.html",
"links.html"

je doit faire comment alors ? Je modifie dans htacces la dernière ligne avec un / devant index.
Et dans header je met un / devant tous les link... exemple :


"/link-\\1.html",

Et avant je change pas ?
"'(?<!/)modules.php\?name=Web_Links'"



Si quelqu'un pouvez m'écrire comment je doti faire pour e htacces et le header.php sa m'aiderais.

Cordialement,

[/quote]
 
WRInaute occasionnel
Salut moi j'ai utilisé googletap

Code:
# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module)$">
deny from all
</FilesMatch>

<Limit GET PUT POST>
  Order Allow,Deny
  Allow from all
</Limit>

RewriteEngine on

RewriteRule ^index.html index.php

#Articles 
RewriteRule ^article([1-9][0-9]*).* /modules.php?name=News&file=article&sid=$1
RewriteRule ^article-topic-([0-9]*).html /modules.php?name=News&new_topic=$1

#contact
RewriteRule ^contact.html /modules.php?name=Feedback

#Content
RewriteRule ^contentid-([1-9][0-9]*).html /modules.php?name=Content&pa=showpage&pid=$1
RewriteRule ^content-cat-([1-9][0-9]*).html /modules.php?name=Content&pa=list_pages_categories&cid=$1

#FAQ
RewriteRule ^faq.html /modules.php?name=FAQ
RewriteRule ^faq-([0-9]*)-([a-zA-Z0-9+]*).html /modules.php?name=FAQ&myfaq=yes&id_cat=$1&categories=$2

#flash games
RewriteRule ^jeux.html /modules.php?name=Flash_Games 

#Forums
RewriteRule ^forums.html /modules.php?name=Forums
RewriteRule ^forums.* /modules.php?name=Forums&file=index
RewriteRule ^forumx([0-9]+)-([0-9]+)-([0-9]+).html /modules.php?name=Forums&file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^postlite([0-9]*)-([/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html /modules.php?name=Forums&file=viewtopic&t=$1&highlight=$2
RewriteRule ^forum([1-9][0-9]*).* /modules.php?name=Forums&file=viewforum&f=$1
RewriteRule ^posts([0-9]*)-([0-9]*).html  /modules.php?name=Forums&file=viewtopic&t=$1&start=$2
RewriteRule ^postx([0-9]+)-([0-9]+)-([0-9]+).html /modules.php?name=Forums&file=viewtopic&t=$1&postdays=$2&postorder=asc&start=$3
RewriteRule ^post(p|t)([1-9][0-9]*).* /modules.php?name=Forums&file=viewtopic&$1=$2
RewriteRule ^markread([0-9]*).html /modules.php?name=Forums&file=viewforum&f=$1&mark=topics
RewriteRule ^newposts([0-9]*).html /modules.php?name=Forums&file=viewtopic&t=$1&view=newest

#Downloads
RewriteRule ^downloads.html /modules.php?name=Downloads
RewriteRule ^downloads-cat-([0-9]*).html&orderby=([a-zA-Z_]*) /modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^downloads-cats-([0-9]*)-([0-9]*)-([0-9]*).html /modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2&orderby=titleA&show=$3
RewriteRule ^downloads-cat-([0-9]*).html /modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads-file-([0-9]*)-details-([/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$1&ttitle=$2
RewriteRule ^downloads-file-([0-9]*).html /modules.php?name=Downloads&d_op=getit&lid=$1

#Stories Archive
RewriteRule ^archive.html /modules.php?name=Stories_Archive
RewriteRule ^archive-([0-9]*)-([0-9]*)-([a-zA-Z]*).* /modules.php?name=Stories_Archive&sa=show_month&year=$1&month=$2&month_l=$3

#reco
RewriteRule ^reco.html /modules.php?name=Recommend_Us

#Reviews

RewriteRule ^reviews-([0-9]*).html /modules.php?name=Reviews&rop=showcontent&id=$1
RewriteRule ^reviews-new.html /modules.php?name=Reviews&rop=write_review
RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html /modules.php?name=Reviews&rop=$1
RewriteRule ^reviews-comment-([0-9]*)-([a-zA-Z0-9]*).* /modules.php?name=Reviews&rop=postcomment&id=$1&title=$2
RewriteRule ^reviews-([0-9]*)-delete.html /modules.php?name=Reviews&rop=del_review&id_del=$1
RewriteRule ^reviews-([0-9]*)-edit.html /modules.php?name=Reviews&rop=mod_review&id=$1

#search
RewriteRule ^search.html /modules.php?name=Search

#Sections
RewriteRule ^section-(printpage|viewarticle)-([0-9]*).html /modules.php?name=Sections&op=$1&artid=$2
RewriteRule ^section-([0-9]*).html /modules.php?name=Sections&op=listarticles&secid=$1
RewriteRule ^sections.html /modules.php?name=Sections

#Surveys
RewriteRule ^sondage.html /modules.php?name=Surveys
RewriteRule ^sondage([a-zA-Z0-9]*)results.html /modules.php?name=Surveys&op=results&pollID=$1
RewriteRule ^sondage([a-zA-Z0-9]*).html /modules.php?name=Surveys&pollID=$2

#Submit
RewriteRule ^submit.html /modules.php?name=Submit_News

#Top10
RewriteRule ^top.html /modules.php?name=Top

#Topics
RewriteRule ^topics.html /modules.php?name=Topics

#Your Account
RewriteRule ^userinfo-([a-zA-Z0-9_-]*).html /modules.php?name=Your_Account&op=userinfo&uname=$1

#WebLinks
RewriteRule ^linksnew-([0-9]+).html /modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html /modules.php?op=modload&name=Web_Links&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html /modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html /modules.php?name=Web_Links&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([0-9]*)-([0-9]*).html /modules.php?name=Web_Links&file=index&l_op=viewlink&cid=$1&min=$2&orderby=titleA&show=$3
RewriteRule ^link-([0-9]*).html /modules.php?name=Web_Links&l_op=viewlink&cid=$1
RewriteRule ^links.html /modules.php?name=Web_Links

RewriteRule ^NukeC.html /modules.php?name=NukeC
RewriteRule ^postads.html /modules.php?name=NukeC&file=postads
RewriteRule ^NukeC&op=ViewDetail&id_ads=$1.html /modules.php?name=NukeC&op=ViewDetail&id_ads=$1
RewriteRule ^adsbox.html /modules.php?name=NukeC&file=adsbox
RewriteRule ^mostpop.html /modules.php

La seul chose a modifié sur le script d'origine, c'est de rajouter un / sur la ligne avant module.php?.........

si tu veut le code complet, download googletap et fait cette modif dans htaccess

et cela fonctionnera sur ovh.

André
 
WRInaute passionné
Sa marche !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Tu est un dieu mixmax06 !!! Enfin j'i fait pleins de forum et j'avais aucune réponse, et là grace a vous j'ai enfin réussit. Franchement un très gros merci a vous...

C'est trop cool !
 

➡️ Offre MyRankingMetrics ⬅️

pré-audit SEO gratuit avec RM Tech (+ avis d'expert)
coaching offert aux clients (avec Olivier Duffez ou Fabien Faceries)

Voir les détails ici

coaching SEO
Discussions similaires
Haut