From Google translate Dutch > English:
Dear all,
My website was ready and I thought now I give the website “as” the real name. so it was http: //www.localhost \ wordpress and I made it from http: //www.localhost \ something else but now does all my website no longer at the new URL, the old url I only see html seems .
I turn on the website yet xampp local.
Anyone have any ideas where I should look for?
In file “wp-config.php”
add lines:
define('WP_HOME','http://www.localhost/wordpress');
define('WP_SITEURL','http://www.localhost/wordpress');
Ok where do i put those lines? below which categorie?
also i type this?’http://www.localhost/new name’ ?
so i renamed the local folder into the new site and put the links within the ini but i can login but all my pics are gone
what am i doing wrong?
The path name of the pics needs to change as well.
This will probably work:
– take a backup of your database.
– Do a search and replace on your database, search for “localhost/oldname” and replace with “localhost/newname”
then reload the database.
If this does not work, then restore the original database.
I looked at the database and searched for oldname but nothing came up.
I just refreshed my pc browser and the website seems 2 run there, on other pc,s it wont run and load the pictures. what could it be?
You are running your site as “localhost”, it only finds your site when it is run on the same PC as the server. If you want your website to be accessible across your LAN, then you need to:
– use the virtual host technique on your server
– add the name and ip address to each computer hosts file
– modify your website so that it calls itself and images etc by the site name and not localhost
If your website is ready then move it to your hosting. Suggest using the “DUPLICATOR” plugin to assist with this.
Hello,
well the localhost is exactly an ipadress of the webserver
for example
define(‘WP_HOME’,’http://10.0.0.1/Wordpress);
define(‘WP_SITEURL’,’http://10.0.0.1/wordpress’);
when i type this at my pc it runs smoothly
when i type the adress at an other pc it doenst work
You have a capital W in the WP_HOME, and lowercase w in WP_SITEURL. This is important.
sp i think i know whats happening but i dont know how i can fix it at once
when i look at my logo for example its redirected from the old folder.
so when i upload new logo and choose new folder it works.
but this means all my links/pics must be corrected.
but the strange thing is why is my running it fluwently?