For some reason my wordpress blog is using // to the path to resources. For example:
<link rel="canonical" href="//my.site.com/"/>
This is not good for SEO, but I can't seem to figure out where to go to fix this. Any ideas?
go to wp-config.php, in your wordpress root, and try to change these two lines to add your website url,
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
and open the functions.php file and make below changes,
update_option('siteurl','http://example.com');
update_option('home','http://example.com');
and also try these steps,
1)Login to WordPress admin dashboard
2)Click on Settings >> General
3)Fill in your WordPress Address and Site Address and click Save.
finally these steps,
1)Backup your database in cPanel prior to making changes.
2)Use phpMyAdmin to manage your WordPress database.
3)phpMyAdmin select WordPress databaseSelect your WordPress database from the left.
4)Then select your wp_options table.
5)Click Edit beside either the siteurl or home entries.
6)Enter in your new value in the option_valuie field, then click Go
at the last try to refer,
http://www.inmotionhosting.com/support/website/wordpress/wordpress-changing-the-site-url-and-home-settings
Related
I have a client who needs his website edited, he is no longer in contact with the original creator of the site, and it seems that the creator used WordPress to make the website. I've been able to access the page through cPanel but cannot locate the HTML files necessary to do things such as editing text. I have the ability to change images but the owner would like to remove some pages, etc.
There are also tons of PHP files for the WordPress extensions and such, but I know nothing about PHP.
Would I need access to the wp-admin account that designed the page in order to modify the text?
Wordpress stores page content in a database, which is subsequently loaded by a collection of php files. You cannot change the content or looks of a wordpress site by changing html files.
The easiest way to change content is to log in to the wordpress dashboard of the website. If you don't have the password, you can open up phpmyadmin via cpanel, browse to the wordpress database and find the *yourwebsiteinitials*_users table. In there you can choose one of the accounts that should be there and click edit, then edit the user_pass column, and simply type a new password in value and set function to md5. Then you can go to *yourwebaddress*/wp-login.php in your browser and login with the user you just edited and the new password.
Alternatively you can find posts in the _posts table and change content via phpmyadmin, but it's much easier to do this via the dashboard.
There could be a few things you need to be aware of: and I believe you have a good understanding of WordPress. If not you may want to watch some tutorials about it.
Themes: You need to find out if the previous developer develop with custom template and maybe he hard coded all the text inside themes file which located wp-content/themes/{name of the theme}/ {other file}, in this case, if you are not aware of WordPress theme development or how it structure, I suggest you watch some quick tutorial on it and there are tons.
Yes, wp-admin is the place where you can find all the pages listed or posts or whatever content. By editing page, you easily can change the text or delete the page which not require or add a new page.
Just find what is the way it's coded. then you will able to follow
You can log into the WordPress dashboard from the cPanel, following these steps:
Login to cPanel.
Scroll down to the Softaculous Apps Installer section and click on the WordPress icon:
You will be directed to the WordPress Install tab.
Scroll down to the Current Installations section.
Click on the admin icon to login to the WordPress dashboard without a password:
You will then reach the WordPress admin dashboard- voila!
if you want delete page in WORDPRESS you need to login wordpress and delete from pages and if you need delete custom php pages you need to go to cpanel and public html folder your page name or delete from wordpress go to /public_html/wp-content/themes/active theme name/ and find there page name there extenstion of pages is like pagename.php or pagename.html.
I created a wordpress site, you can check it here http://www.enterhelix.com/shan/wordpress4.5/ , as I wanted it to be in a separate domain, so I created a domain http://www.pioneersurgicalsystems.in/ and copied all files and folder in the root of pioneersurgicalsystems.in including DATABASE. If you open pioneersurgicalsystems.in/ in your browser it will open, but if you click in any categories then you will be redirected to 404 page. After Googling I found a solution and edit config.php file and added
define('WP_HOME','http://www.pioneersurgicalsystems.in');
define('WP_SITEURL','http://www.pioneersurgicalsystems.in');
and edited functions.php file of my theme and added the following code
update_option('siteurl', 'http://www.pioneersurgicalsystems.in');
update_option('home', 'http://www.pioneersurgicalsystems.in');
But still it does not work, everything is okay and working fine in the first link, but it is not working in the second link in which I want the site to be hosted, can anyone help me..?? Thanks
Could you please save permalink again?
Step 1 : Goto wp-admin->setting->permalinks
Steps 2 : After save changes
If you are able to login in admin and only home page is open. other pages in not able to open then please first login to admin. and then from setting menu go permalinks menu and there from first select other option again select format (like post name) which you want like this way new .htaccess is created your problem will solved.try this your problem will solved
go to Settings->permalinks save your Permalink Settings.
I have my own domain
www.mxm.com (just an example)
and i create other page with this url:
www.mxm.com/testpage1
in the carpet testpage1 i installed wordpress and i redirect to
www.testpage1.com in my cpanel.
So now i can enter www.testpage1.com with no problem but when i click in other menu item like blog the url change to:
www.mxm.com/testpage1/blog
I want to know how to change
www.mxm.com/textpage1/blog
I want to get
www.testpage1.com/blog
I was reading something about editing wp-config.php or wp-setting.php but i didn't get it.
There is a way? I'm kind of newbie using wordpress. Thanks btw.
I finally made it!
I just edit the .htaccess and the table with credentials on my DB and it works.
Other way i found was changing it with the dashboard of Wordpress. In settings there is a field where u can change the address of wordpress and for the website.
This two urls help me a lot:
https://wordpress.org/support/topic/problem-moving-wp-now-only-the-home-page-works
https://wordpress.org/support/topic/redirect-a-domain-to-my-wordpress-url
I'm trying to make new changes to a WordPress site I have. So I copied all files and exported to new development sub-domain. Made new database for the sub-domain and imported the database from live site.
Live site: http://mysite.com
Dev site: http://dev.mysite.com
Seems to be working, but all nav links still point to live site. And main issue is when I go to http://dev.mysite.com/wp-admin, I get redirected to live site. This is link I'm getting redirected to:
http://mysite.com/wp-login.php?redirect_to=http%3A%2F%2Fdev.mysite.com%2Fwp-admin%2F&reauth=1
Any ideas?
Thanks
The answers above are correct, most of the time editing the 'home' and 'site' url in the wp_options table will do the trick, however sometimes it's necessary to run a search and replace on the database (use at your own risk):
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
This has worked very well for me in the past.
Also, updating your permalink settings by going to Settings->Permalinks and just clicking 'Save' will often fix url problems.
EDIT
Alternatively, since you do not have access to wp-admin for updating permalinks, you can try this:
Edit wp-config.php and add this:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
where http://example.com is your site url.
Directly after "That's all, stop editing!" insert this line:
define('RELOCATE',true);
Then, navigate to http://example.com/wp-login.php
Please let me know if that works or not.
in your wp_options table, edit the first few records (sorted asc by ID) and edit them to have the correct URL.
You can also identify other options by using a SQL similar to SELECT * FROM wp_options WHERE option_value like '%mysite.com%'
Look in your Wordpress database for the wp_options table.
In the option_name column, find the "siteurl" row. Change the option_value in that row to http://dev.mysite.com .
Look again in the option_name column for the row with "home" in it. Change the option_value in that row to http://dev.mysite.com .
That should do it.
Wp-login was missing from the dev site. For some reason, it didn't copy over. So it caused the 404 when trying to access wp-admin.
Im using page.php in wordpress for making a dynamic page.
Right now Im using photography/?cat=portraits
But I want photography/portraits
Im currently grabbing whatever is in my query string (cat=portraits) and only showing that content.
Where at in wordpress can I set up the routes or permalinks to be formated more simple?
Permalinks can be found under the setting tab from your WordPress admin interface
Follow this tutorial...
http://www.creativecitrus.com/wordpress-development/how-to-get-pretty-urls-in-wordpress
Or theres the Pretty URL plugin....but Ive never used that
http://wordpress.org/plugins/pretty-url/
Login wp-admin
Settings -> permalinks and choose custom structure place this sting and save it
/%category%/%postname%
If you have any problem in saving permalink please copy paste it in htaccess.
Or make it write permission for period.