Site do



Horaires, tarifs, accès

Préparer sa visite

Louvre, mode d’emploi

Groupes et scolaires

Librairies et boutiques

Cafés et restaurants

Audioguide et applications

Parcours à imprimer

Visites et Activités groupes publics spécifiques

Visites et Activités groupes scolaires

Pistes de visite

Conférences et colloques

Spectacle vivant et littérature

Collections et départements

Pavillon de l’Horloge

Histoire du Louvre

Études et recherche

Rechercher une œuvre

Jardins du Carrousel et des Tuileries

Centre de conservation du Louvre

Oeuvres à la loupe

Le Louvre raconté aux enfants

Conférences de l’auditorium

Images du Louvre

Toutes les ressources

Les 5 pages les plus visitées

Agenda

Mardi 11 Décembre

Quelques suggestions

Newsletter

Boutique

Accédez à la boutique

Billetterie

Achetez votre billet

Un rêve d’Italie

La collection du marquis Campana

Du 7 novembre 2018 au 18 février 2019

l’arc
du Carrousel

Napoléon l’a construit, à vous de le restaurer

Faites un don avant le 31 janvier 2019

Gravure
en clair-obscur

Cranach, Raphaël, Rubens…

Du 18 Octobre 2018 au 14 Janvier 2019

12e Journées
internationales
du film sur l’art

Du 25 au 27 janvier et du 30 janvier au 3 février 2019

L’Archéologie
en bulles

Découvrez la 4e édition de la Petite Galerie

Du 26 septembre 2018 au 1er juillet 2019

Découvrez chaque jour une nouvelle œuvre du Louvre

Un jour, une œuvre

Horaires, tarifs
et conseils de visite

Vigipirate
A lire avant votre visite

Des idées cadeaux pour vous et vos proches

Offrez le Louvre

et les échanges artistiques en Europe au 18e siècle
Les 12 et 13 décembre 2018
En lien avec l’exposition « Éblouissante Venise » au Grand Palais

La « diaspora » des artistes vénitiens

Cycle de cinq conférences à 18h30, de novembre 2018 à janvier 2019

L’Europe des collections au 19e siècle

Rencontre de Stéphane Braunschweig
et Nicolas Milovanovic

Théâtre Odéon :
«Molière, les femmes et les arts»

Don en ligne

Le Louvre dans le monde

Louvre Abu Dhabi

Louvre dans le monde

Mon Louvre espace personnel

Informations pratiques

Horaires :
Ouvert tous les jours de 9h à 18h sauf le mardi
Nocturnes jusqu’à 21h45 le mercredi et le vendredi
Nocturne gratuite le premier samedi du mois
de 18h à 21h45 à partir de janvier 2019

Fermetures :
Le 25 décembre 2018
Les 1er janvier, 1er mai et 25 décembre 2019

Entrez au musée en moins de 30 minutes
en achetant votre billet en ligne :

WordPress.org

Codex

Changing The Site URL

On the Settings->General screen in a single site installation of WordPress, there are two fields named «WordPress Address (URL)» and «Site Address (URL)». They are important settings, since they control where WordPress thinks your site is located. They control the display of the URL in the admin section of your page, as well as the front end, and are used throughout the WordPress code.

  • The «Site Address (URL)» setting is the address you want people to type in their browser to reach your WordPress blog.
  • The «WordPress Address (URL)» setting is the address where your WordPress core files reside.

Note: Both settings should include the http:// part and should not have a slash «/» at the end.

Every once in a while, somebody finds a need to manually change (or fix) these settings. Usually this happens when they change one or both and discover that their site no longer works properly. This can leave the user with no easily discoverable way to correct the problem. This article tells you how to change these settings directly.

Additional information is presented here for the case where you are moving WordPress from one site to another, as this will also require changing the site URL. You should not attempt to use this additional information if you’re only attempting to correct a «broken» site.

Contents

Changing the Site URL

There are four easy methods to change the Site URL manually. Any of these methods will work and perform much the same function.

In the notes below, ‘WP_HOME’ and ‘home’ refer to the «Site Address (URL)» or what you want regular visitors to type in their browser. ‘WP_SITEURL’ and ‘siteurl’ refer to the «WordPress Address (URL)» or the address where your WordPress core files reside.

Edit wp-config.php

It is possible to set the site URL manually in the wp-config.php file.

Add these two lines to your wp-config.php, where «example.com» is the correct location of your site.

This is not necessarily the best fix, it’s just hardcoding the values into the site itself. You won’t be able to edit them on the General settings page anymore when using this method.

Edit functions.php

If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

1. FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor and upload it back to the site.

2. Add these two lines to the file, immediately after the initial » >>

Here are some additional details that step you through transfering a LAN-based wordpress site into an externally accessible site as well enabling editing the wordpress site from inside the LAN.

Two important keys are router/firewall modifications and the «wait 10+ minutes» after making the changes at the end.

$url = dirname( set_url_scheme( ‘http://’ . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘PHP_SELF’] ) ); if ( $url != get_option( ‘siteurl’ ) ) update_option( ‘siteurl’, $url ); >

Steps

1. Edit the wp-config.php file.

2. After the «define» statements (just before the comment line that says «That’s all, stop editing!»), insert a new line, and type: define( ‘RELOCATE’, true );

3. Save your wp-config.php file.

4. Open a web browser and manually point it to wp-login.php on the new server. For example, if your new site is at http://www.yourdomainname.com, then type http://www.yourdomainname.com/wp-login.php into your browser’s address bar.

5. Login as per normal.

6. Look in your web browser’s address bar to verify that you have, indeed, logged in to the correct server. If this is the case, then in the Admin back-end, navigate to Settings > General and verify that both the address settings are correct. Remember to Save Changes.

7. Once this has been fixed, edit wp-config.php and either completely remove the line that you added (delete the whole line), comment it out (with // ) or change the true value to false if you think it’s likely you will be relocating again.

Note: When the RELOCATE flag is set to true, the Site URL will be automatically updated to whatever path you are using to access the login screen. This will get the admin section up and running on the new URL, but it will not correct any other part of the setup. Those you will still need to alter manually.

Changing the URL directly in the database

If you know how to access phpMyAdmin on your host, then you can edit these values directly to get you up and running again.

  1. Backup your database and save the copy off-site.
  2. Login to phpMyAdmin.
  3. Click the link to your Databases.
  4. A list of your databases will appear. Choose the one that is your WordPress database.
  5. All the tables in your database will appear on the screen.
  6. From the list, look for wp_options. Note: The table prefix of wp_ may be different if you changed it when installing.
  7. Click on the small icon indicated as Browse.
  8. A screen will open with a list of the fields within the wp_options table.
  9. Under the field option_name, scroll down and look for siteurl.
  10. Click the Edit Field icon which usually is found at the far left at the beginning of the row.
  11. The Edit Field window will appear.
  12. In the input box for option_value, carefully change the URL information to the new address.
  13. Verify this is correct and click Go to save the information.
  14. You should be returned to your wp_options table.
  15. Look for the home field in the table and click Edit Field. Note There are several pages of tables inside wp_options. Look for the > symbol to page through them.
  16. In the input box for option_value, carefully change the URL information to the new address.
  17. Verify this is correct and click Go to save the information.

Moving Sites

When moving sites from one location to another, it is sometimes necessary to manually modify data in the database to make the new site URL information to be recognized properly. Many tools exist to assist with this, and those should generally be used instead of manual modifications.

This is presented here as information only. This data may not be complete or accurate.

You should read the Moving WordPress article first, if attempting to move WordPress from one system to another.

Altering Table Prefixes

Like many WordPress administrators, you may be running several WordPress installations off of one database using various wp-config.php hacks. Many of these hacks involve dynamically setting table prefixes, and if you do end up altering your table prefix, you must update several entries within the prefix_usermeta table as well.

As in the above section, remember that SQL changes are permanent and so you should back up your database first:

If you are changing table prefixes for a site, then remember to alter the table prefix in the usermeta tables as well. This will allow the new site to properly recognize user permissions from the old site.

Changing Template Files

In your WordPress Theme, open each template file and search for any manually entered references to your old domain name and replace it with the new one. Look for specific hand coded links you may have entered on the various template files such as the sidebar.php and footer.php.

WordPress uses a template tag called bloginfo() to automatically generate your site address from information entered in your Administration > Settings > General panel. The tag in your template files will not have to be modified.

Changing the Config file

You will need to update your WordPress configuration file if your database has moved or changed in certain ways.

  1. You will only need to modify the config file if:
    1. your database has moved to another server and is not running on your localhost
    2. you have renamed your database
    3. you have changed the database user name
  2. «‘Make a backup copy of your wp-config.php file.'»
  3. Open the wp-config.php file in a text editor.
  4. Review its contents. In particular, you are looking for the database host entry.
  5. Save the file.

At this point, your WordPress blog should be working.

Verify the Profile

  1. In your Administration Panels go to Settings >General . Here you will verify that the changes you made in Changing the URL above, are correct.
  2. Verify that the reference in your WordPress Address (URL) contains the new address.
  3. Verify that the reference in your Site Address (URL) contains the new address.
  4. If you have made changes, click Save Changes.

Changing the .htaccess file

After changing the information in your Administration > Settings > General panel, you will need to update your .htaccess file if you are using Permalinks or any rewrites or redirects.

  1. Make a backup copy of your .htaccess file. This is not a recommendation but a requirement.
  2. Open the .htaccess file in a text editor.
  3. Review its contents, looking for any custom rewrites or redirects you entered. Copy these to another text file for safe keeping.
  4. Close the file.
  5. Follow the instructions on the Permalinks SubPanel for updating your Permalinks to the .htaccess file.
  6. Open the new .htaccess file and check to see if your custom rewrites and redirects are still there. If not, copy them from the saved file and paste them into the new .htaccess file.
  7. Make any changes necessary in those custom rewrites and redirects to reflect the new site address.
  8. Save the file.
  9. Test those redirects to ensure they are working.

If you make a mistake, you can Restoring Your Database From Backup from your backup and try this again. So make sure it is right the first time.

Additional items of note

There are other things you may wish to change in order to correct URLs when moving sites.

  1. Images link: image links are stored in «post_content» in the wp_posts table. You can use the similar code above to update image links.
  2. wp_options: Besides the «siteurl» and «home» items mentioned above, there are other option_value which also need revision, such as «upload path», and some plugin items (depends on what you’ve installed, such as widgets, stats, DMSGuestbook, sitemap, etc.)
  3. To fix widgets that contain outdated URL’s, you may edit them in Dashboard / Appearance / Widgets.
  4. Do a FULL database search for any items left. MAKE SURE you know what you are changing. and go through each item for possible improper replacement.
  5. If you a running a network / have multiple sites, you will need to replace instances of the URL in the database. They are stored in many tables, including each one of the sites (blogs). Be careful in what you replace and be sure you know the meaning of the field before changing it. See the Important GUID note below for an example of what not to change.
  6. Note, if you find your old url in the database options table under ‘dashboard_incoming_links’, you can ignore or delete that option. It’s unused since WP 3.8.

How To: Move Your WordPress Blog to a New Domain — Using the Export/Import feature to move a blog to a new domain

Important GUID Note

When doing the above and changing the URLs directly in the database, you will come across instances of the URL being located in the «guid» column in the wp_posts tables.

It is critical that you do NOT change the contents of this field.

The term «GUID» stands for «Globally Unique Identifier». It is a field that is intended to hold an identifier for the post which a) is unique across the whole of space and time and b) never, ever changes. The GUID field is primarily used to create the WordPress feeds.

When a feed-reader is reading feeds, it uses the contents of the GUID field to know whether or not it has displayed a particular item before. It does this in one of various ways, but the most common method is simply to store a list of GUID’s that it has already displayed and «marked as read» or similar.

Thus, changing the GUID will mean that many feedreaders will suddenly display your content in the user’s reader again as if it was new content, possibly annoying your users.

In order for the GUID field to be «globally» unique, it is an accepted convention that the URL or some representation of the URL is used. Thus, if you own example.com, then you’re the only one using example.com and thus it’s unique to you and your site. This is why WordPress uses the permalink, or some form thereof, for the GUID.

However, the second part of that is that the GUID must never change. Even if you shift domains around, the post is still the same post, even in a new location. Feed readers being shifted to your new feeds when you change URLs should still know that they’ve read some of your posts before, and thus the GUID must remain unchanged.

Never, ever, change the contents of the GUID column, under any circumstances.

NB: If the default uploads folder needs to be changed to a different location, then any media URLs will need to be changed in the post_content column of the posts table. For example, if the default uploads folder is changing from wp-content/uploads to images:

Multi-site notes

wp-cli

wp-cli is a super useful shell tool.

Or, if you only want to change the option, you can do:

Skaf Trafik til min Hjemmeside

งบประมาณ $10-30 USD

  • Freelancer
  • งาน
  • การตลาดทางอินเทอร์เน็ต
  • Skaf Trafik til min Hjemmeside

I need to boost my costumers traffic to their site, i have some ideas on how to do this, if you have some ideas too, lets TALK!

หมายเลขโปรเจค: #12723290

กำลังมองหาการสร้างรายได้ใช่ไหม?

freelancer 21 คน กำลังเสนอราคาเฉลี่ยที่ $72 สำหรับงานนี้

We have 10+ years SEO experience can do white hat SEO for references please check our reviews 2250+ reviews with Good Rehire Rate we can do white hat SEO as per Google guideline in last 1-2 year Google made many upda เพิ่มเติม

Hi Sir, I’m Pratishtha- I increase ROI for my clients by perfecting their online presence and boosting their Google rankings through organic, white hat SEO. Simply put, I can boost your rankings. We fully aware a เพิ่มเติม

Hi Sir, Thank you very much for giving us this opportunity to participate in your project. We are one of the Top Provider here with 1200+ Top feedback and you can see here https://www.freelancer.com/u/EDataSolution เพิ่มเติม

Hi, We have 7+ years experience in SEO so we offer a complete range of search engine Optimization services & packages. Our Aim is to ensure that your website will continue to increase in its rankings, attract more เพิ่มเติม

Hello sir, I have read your project requirement and ready to do work for you. Our main link building area is local, thematic, competitor and do follow so i will provide you all type of links. We will d เพิ่มเติม

Guaranteed Ranking. Hello sir, we have read the project description and would like to know more about it from you. We have best Seo Professionals in our team and we assure you that we can give you first page ranking เพิ่มเติม

HI, We are an SEO Internet Marketing Company. We are providing white hat SEO services. We are very flexible in terms of methods we use for each website. All the work we will be doing through white-hat techniques. W เพิ่มเติม

Hello sir . we are freelancer verified and Preferred members !! we ready to start right away sir . ====== «»Guaranteed result and ranking within ==»» 3 MONTH «»== at top on google and organic traffic «».. + เพิ่มเติม

Hello Sir, Greetings! I am Qualified all SEO Exam with high Percentage. You can check My Profile Here — https://www.freelancer.com/u/mahipal7.html My Experienced SEO team can help you to provide High rankings and r เพิ่มเติม

Hi. Hope you are fine by the grace of GOD. If you are looking for SEO services which provide quality for the lowest prices in the market then we are the right people to get in touch with. We have an unmatched team of S เพิ่มเติม

Site do

Não seja OFF, seja ON:

aproveite o WhatsApp

liberado o mês todo em

Não seja OFF, seja ON:

aproveite o WhatsApp

liberado o mês todo em

No Novo Oi Livre, você fica

sempre conectado. E ainda

dá pra trocar minutos por

internet na Minha Oi pra

navegar muito mais.

No Novo Oi Livre, você fica sempre conectado.

E ainda dá pra trocar minutos por internet na

Minha Oi pra navegar muito mais.

Slider de Ofertas

OI MAIS

Slider de Ofertas

oi fibra. Uma nova

100 MEGA + 3 meses de

netflix

De R$ 119,90/mês por

Slider de Ofertas

PLANO CONTROLE INTERMEDIÁRIO

Sem gastar mais do

seu plano Controle

Slider de Ofertas

WHATSAPP DA OI

Agora você pode pedir informações da sua conta pelo WhatsApp

É só adicionar o Assistente Virtual da Oi (31) 3131-3131 e conversar com ele. Aproveite a novidade.

Agora você pode pedir informações da sua conta pelo WhatsApp.

É só adicionar o Assistente Virtual da Oi (31) 3131-3131 e conversar com ele. Aproveite a novidade.

Slider de Ofertas

PRÉ PAGO

Não seja OFF, seja ON:

aproveite o WhatsApp

liberado o mês todo em

Não seja OFF, seja ON:

aproveite o WhatsApp

liberado o mês todo em

No Novo Oi Livre, você fica

sempre conectado. E ainda

dá pra trocar minutos por

internet na Minha Oi pra

navegar muito mais.

No Novo Oi Livre, você fica sempre conectado.

E ainda dá pra trocar minutos por internet na

Minha Oi pra navegar muito mais.

Slider de Ofertas

OI MAIS

Lists

Não recebeu a conta ou precisa de reparo?
TV HD: 162 canais com diversão pra toda a família
PÓS-PAGO DA OI: é internet que não acaba mais no Pós

Internet no celular + Artboard

Apps sem gastar internet

Mude agora pro Oi Livre

Internet no celular +

A gente tem o que você precisa

A gente tem o que você precisa

Combo

Com um Combo da Oi, você aproveita de tudo de uma só vez.

Mais sobre Combo

TV HD

Tem de tudo que você gosta de assistir nos planos de TV por assinatura da Oi.

Mais sobre TV HD

Celular

Com os planos de celular da Oi, você fala, navega, faz recarga e aproveita SMS do seu jeito.

Mais sobre Celular

Internet

Internet para você ficar conectado em qualquer lugar e curtir o que quiser.

Mais sobre Internet

O seu telefone fixo para falar com quem está perto, para ligar para quem mora longe.

Mais sobre Fixo

Comunicado: De acordo com a Lei Geral de Telecomunicações 9.472, todo aparelho celular em uso no Brasil deve ser certificado ou ter sua certificação aceita pela Anatel. O projeto Celular Legal foi criado para inibir a comercialização de produtos irregulares utilizados nas redes das operadoras celulares. Como consequência, conscientizar a população para que utilizem apenas celulares em conformidade com a legislação brasileira. Para saber a situação do seu celular, consulte aqui.

Оставить комментарий

avatar
  Подписаться  
Уведомление о