Mais à quoi ça peut franchement servir ? On ne peut pas vous en vouloir de penser ça !
WordPress – Modifier ses adresses web dans sa base de données
Ok dans quel contexte j’ai besoin de ça ?
Plusieurs raisons peuvent vous décider à modifier l’adresse web de votre site wordpress dans la base de données mais on est d’accord que si vous devez faire ça, il y a une raison, à moins que vous n’aimiez l’aventure sans but précis !
La création d’une sandbox (site test)
On y reviendra dans un autre article sur les éléments importants lors de la réalisation d’un site internet. Dans notre cas, il est intéressant d’utiliser la modification des adresses web de votre base de données. En effet, à un moment donné de votre processus de création de votre site de tests, vous allez copier/coller les contenus thèmes + la base de données.
A ce moment là vous pourrez utiliser le code distribué ci-après pour faire les modifications de votre site officiel vers votre site sandbox !
Vous avez fait deux trois modifications douteuses…
Si vous êtes un peu aventureux avec vos instances WordPress il est possible que vous vous soyez senti poussé des ailes et tenté deux trois choses douteuses… là encore pour remettre une modification au carré, ce morceau de code est indispensable.
Et comme on vous aime, on l’a testé et retesté ! Et il fonctionne au top !
SET @oldurl = ‘https//votresiteinstorique.com’;
SET @newurl = ‘https//votrenouveausite.com’;
UPDATE wp_options SET option_value = replace(option_value, @oldurl, @newurl) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET guid = replace(guid, @oldurl,@newurl);
UPDATE wp_posts SET post_content = replace(post_content, @oldurl, @newurl);
UPDATE wp_postmeta SET meta_value = replace(meta_value,@oldurl, @newurl);
Euh… merci mais comment je fais ça !?
Oui ça peut être utile ! Avec wordpress vous avez forcément installé une base de données, donc il va falloir s’y connecter. En général on utilise un phpmyadmin qui vous permet d’accéder aux données et surtout au module SQL qui vous permettra de copier ce code et lancer les modifications
Romain BAJOLLE passionné de digital en tout genre et à toutes les sauces, j'adore aider les entreprises à se développer et à changer leur vision des choses ! Un rêveur pragmatique en quelque sorte !
A propos de nous
Vous n'êtes pas passé par la case, qui sommes-nous ? pas grave ! On est une petite agence digitale à Diego et on adore ça !
Une info en plus ?
Vous avez un projet une envie de web ? de digitaliser votre entreprise ? Nous pouvons vous y aider, assez simplement et en toute transparence !
Inscrivez-vous à notre newsletter!
Articles récents
- WordPress – Modifier ses adresses web dans sa base de données 14 novembre 2017
- WordPress oui mais pourquoi Cre4tic ? 23 mars 2017
Pingback: canadian drug
Pingback: prescription drugs online
Pingback: ed doctor
Pingback: ivermectin cream 1%
Pingback: natural cure for ed
Pingback: rosacea ivermectin
Pingback: milbemycin oxime vs ivermectin
Pingback: how much is ivermectin
Pingback: cheap erectile dysfunction pills online
Pingback: otc ed drugs
Pingback: best ed pills online
Pingback: ivermectin new zealand
Pingback: child porn
Pingback: ivermectin rx
Pingback: stromectol cost
Pingback: ivermectin dose
Pingback: clomid online us
Pingback: meritroyalbet
Pingback: can i buy clomid online
Pingback: clomid online paypal
Pingback: clomid infertility
Pingback: cialissite:au
Pingback: can you buy stromectol over the counter
Pingback: eurocasino
Pingback: meritroyalbet
Pingback: ivermectin online
Pingback: when to take cialis for best results
Pingback: iver mectin
Pingback: hydroxychloroquine for sale
Pingback: side effects for ivermectin
Pingback: what does a cialis pill look like
Pingback: lucky land slots play now
Pingback: madridbet
Pingback: cialis daily
Pingback: ivermectin tablets for sale
Pingback: cost of stromectol
Pingback: how to get ivermectin in canada
Pingback: ivermectin dog
Pingback: eurocasino
Pingback: eurocasino
Pingback: ivermectin brand
Pingback: tadalafil india
Pingback: cialis online canada
Pingback: stromectol ivermectin
Pingback: furosemide 2018
Pingback: furosemide 20 mg price
Pingback: meritking
Pingback: meritking
Pingback: meritroyalbet
Pingback: ivermectin lotion cost
Pingback: buy ivermectin for humans australia
Pingback: buy minocycline 50mg otc
Pingback: generic ivermectin for humans
Pingback: ivermectin 12mg pills
Pingback: viagra and high blood pressure
Pingback: ivermectin bestellen
Pingback: can you buy generic cialis in canada
Pingback: ivermectin 3mg for sale
Pingback: order stromectol online
Pingback: ivermectin ingredients
Pingback: buy ivermectin 6 mg for humans
Pingback: where can i get doxycycline
Pingback: ivermectin tablets buy online
Pingback: ivermectin buy uk
Pingback: clomid online no prescription
Pingback: canada cialis no prescription
Pingback: ivermectin humans
Pingback: ivermectin 3mg cost
Pingback: ivermectin gold
Pingback: ivermectin 4 tablets price
Pingback: generic cialis
Pingback: ivermectin 12mg pills
Pingback: viagra generic online cheapest
Pingback: cialis pills
Pingback: real money slots
Pingback: ivermectin 18mg
Pingback: ivermectin generic name
Pingback: cheap tadalafil
Pingback: borgata pa online casino
Pingback: azithromycin uti
Pingback: cialis goodrx
Pingback: sildenafilo
Pingback: usa casinos no deposit free welcome bonus
Pingback: buy cialis online
Pingback: generic viagra side effects
Pingback: prednisone side effects in women
Pingback: ivermectin pill cost
Pingback: child porn
Pingback: tadalafil nebenwirkungen
Pingback: tadalafil online purchase
Pingback: cheap molnupiravir
Pingback: where to get cialis prescription
Pingback: merck covid pill ivermectin
Pingback: cialis prescription online usa
Pingback: what is prednisone 20mg tablets
Pingback: prednisone 20mg nebenwirkungen
Pingback: otc cialis
Pingback: how to buy cialis in india
Pingback: tombala siteleri
Pingback: cialis pills
Pingback: where can you buy sildenafil pills
Pingback: sildenafil pills generic brand
Pingback: horse paste ivermectin
Pingback: canadian online drugs
Pingback: how to buy cialis in uk
Pingback: baymavi
Pingback: sildenafil pills for men
Pingback: baymavi
Pingback: when will cialis be generic
Pingback: medshuku cialis generic best price
Pingback: buy brand cialis canada
Pingback: side effects of tadalafil
Pingback: tadalafil without a doctor prescription
Pingback: can you buy cialis safely online
Pingback: ivermectine
Pingback: zithromax
Pingback: buying viagra online
Pingback: tadalafilo
Pingback: viagra professional sale
Pingback: ivermectin buy australia
Pingback: ivermectin tablet 1mg
Pingback: provigil cialis
Pingback: walgreens provigil cost
Pingback: meritroyalbet
Pingback: buy ventolin online no prescription
Pingback: goodrx cialis
Pingback: coupons for tadalafil
Pingback: cialis generic canada
Pingback: prednisone 20mg uk
Pingback: stromectol cream
Pingback: cialis generic
Pingback: ivermectin australia
Pingback: stromectol walgreens
Pingback: ignition casino legal
Pingback: ivermectin online
Pingback: stromectol for sale
Pingback: flccc ivermectin
Pingback: where to get ivermectin
Pingback: order ivermectin
Pingback: stromectol walgreens
Pingback: buy ivermectin online
Pingback: stromectol walgreens
Pingback: cheap viagra buy
Pingback: flccc ivermectin
Pingback: ivermectin treatment for covid
Pingback: ivermectin nz
Pingback: stromectol generic
Pingback: price of ivermectin tablets
Pingback: ivermectin cost in usa
Pingback: stromectol for humans
Pingback: generic stromectol
Pingback: ivermectin tablet 1mg
Pingback: ivermectin 2mg
Pingback: ivermectin 3mg tablets price
Pingback: stromectol 3 mg dosage
Pingback: flccc alliance treatment protocol
Pingback: meritroyalbet
Pingback: flccc ivermectin
Pingback: flccc ivermectin
Pingback: tombala siteleri
Pingback: tombala siteleri
Pingback: ventolin in usa
Pingback: trcasino
Pingback: ivermectin eye drops
Pingback: ivermectin nz
Pingback: womens viagra
Pingback: discount viagra online canada
Pingback: how to buy cialis in india
Pingback: stromectol generic
Pingback: buy cheap ventolin inhalers
Pingback: trcasino
Pingback: elexusbet
Pingback: ivermectin 5 mg
Pingback: madridbet
Pingback: buy viagra generic
Pingback: perabet
Pingback: viagra for men under 30
Pingback: order viagra without rx
Pingback: cialis 50mg
Pingback: viagra sildenafil 50mg tablets
Pingback: levitra com
Pingback: meritroyalbet
Pingback: bets baccaratonline money
Pingback: meritroyalbet
Pingback: meritking
Pingback: eurocasino
Pingback: eurocasino
Pingback: meritroyalbet
Pingback: madridbet
Pingback: eurocasino
Pingback: elexusbet
Pingback: meritking
Pingback: buy viagra 50mg online
Pingback: female cialis 20mg pills
Pingback: best website for online blackjack