I am a completely newbie in wordpress. At this moment, my blog URL is blog.mysite.com, and in the past it was www.mysite.com/blog.
The URLs and links are ok in the blog, because I changed the base URL in wp-config file. However, the images are still using the old route.
This is the URL of my pictures:
blog.mysite.com/wp-content/themes/canvas/functions/thumb.php?src=http://mysite.com/blog/wp-content/uploads/2012/04/bname-268x300.jpg&w=150&h=150&zc=1&q=90
As yoy can see, it is using TinThumb plugin, but the URL that it is using is the old one.
Can anyone help me to fix it?
Wordpress main drawbacks is it saves complete image url in db.
So if you migrating your site you have to search & replace url in your sql file & need to dump it again.
I suggest you to do it manually and follow the steps mention here.
Also there is plugin available to do the same named Search and Replace.
add the two lines in wp-config
define('WP_SITEURL', 'http://newsiteaddress.com/');
define('WP_HOME', 'http://newsiteaddress.com/');
please note that some plugins that use the file system like ssome caches may have to be reconfigured or the cache may be reconfigured
You need to dump database to file and replace all strings 'mysite.com/blog' to 'blog.mysite.com', and after overwrite database by fixed dump.
Sorry for my bad english.
Related
I have problem after using all-in-one wp-migrate. I export page to other domain and then I have problem with include css and js files in personalization page. This files have wrong url, becouse there are "/wp-content/plugins":
For example(there are about 50 links like that, with css and js files):
There is:
/wp-content/plugins/wp-content/themes/classiadspro/includes/framework/ReduxCore/assets/css/redux-admin.css
Should be:
/wp-content/themes/classiadspro/includes/framework/ReduxCore/assets/css/redux-admin.css
I can't find where are generate this links. I think it's something wrong with some function file, but I can't find it. Please help where I can change that.
You should regenerate permalinks after migration using All-in-One WP Migration. On the left side menu, select Settings > Permalinks, then click Save Changes. It’s unnecessary to edit any of the default permalink structure information. Repeat saving once again (twice at all) and now it should be ok.
I'm working on an application using php framework Laravel.
I've encountered a problem since I need to open a modification form with two parameters. I pass them in my url like so:
<tr class="beBlack" onclick="document.location = '/showGriefs/{{$data->No_Grief}}/{{$data->No_Employe}}'">
(I know that it is sketchy to create a link within a table but I need the url to change according to which row is clicked/selected)
and I receive them in the following route:
Route::any('/showGriefs/{No_Grief}/{No_Employe}', 'GriefController#showGrief')->name('showGriefs');
My problem is that I don't want my url to change, because, with these url changes, my application can't find the files (CSS, JS and Plugins). And since laravel is using the public directory to store all those files, it's destroying my page. The only errors I get are some missing files error.
I've searched the internet a lot but didn't found anything, I hope you'll all be able to help me. Thanks.
I know 2 solutions to fix your problem. No need to change route URLs. Just fix asset problem.
1. Use / before asset url
If you use / before url, browser will try to look at resource on the root dir.
For example: if you need http://example.com/assets/img.png then use /assets/img.png. Changing URLs will not affect the asset URLs that starts with / character.
2. Use url helpers for asset URLs
asset('assets/img.png') will change asset url from assets/img.png to http://example.com/assets/img.png
After setting up a template file article.html in craft/templates folder, and creating the section article with the uri article and setting the entry template as article in the admin on trying to see the live preview of the page when I go to it in the entries list I get a craft page with the error:
Page not found
I thought it might have something with cache maybe, so I cleared that, but I still got the same error. Why I am getting this error, and how can I fix that?
It might be a database not updating issue, have you tried making a backup of your current database and start with a fresh one?
If not, then check .htaccess and your routes.
First crate a 404.twig file.
Open general.php file "config/general.php" and change the devMode to false.
I'm new to web development but i know some php basic stuff. Using ftp, i create directories then create simple php scripts there, simple as echoing a string. Which can be accessed like,
www.sampledomain.com/folder1/subfolder2/hello.php
After some time, my friend introduced me to wordpress which is what they described as CMS. I tried to visit her site www.majaflores.com then i click on some stuff there and i noticed the url changed to http://majaflores.com/project/if-i-let-you-in-please-dont-break-anything/
At first, its pretty normal for me because its just a link where there is a folder named "project" and inside it another folder named "if-i-let-you-in-please-dont-break-anything". But when she showed me the ftp folders directory, i didnt see any folder named "project" under main folder of the domain. How did wordpress manage to do this? and how can i implement this manually?
Just wanted to say that like most server-side code environments, PHP also let you parse URLs "manually" and decide what to do accordingly, be it return a file or generate some content.
You can find more information about how PHP is parsing URLs in here:
http://php.net/manual/en/function.parse-url.php
and some discussion regarding it in here:
URL handling – PHP vs Apache Rewrite
This is they way WordPress stores data. U can further see the setting under Permalink.
Under Permalink, u can have options to render ulr as page id, category names and more. You can also use your own format over there.
Just a note, WordPress stored data in database not as a content on FTP directory.
I need to locate the file that manages the main page of my online store developed with Magento (which would be the index.html). I just need to change a link, and I've used Firebug shows that the file i need to edit is "misitioweb.com" (the main page) but the document itself does not appear in the ftp. The initial page consists of a bunch of XML, and PHP's PHTML. If someone wants to see the address page is http://peluches-cel.com and only want to change the destination URL of the link "Peluche del mes". I have used the help of Magento to show "Help template route" and I downloaded the 4 files that are more likely to manage that area of the page, but I can not find the part where specify the destination URL of the link. I have always worked with HTML or PHP separately (I have little experience with PHP) and I find it very difficult to understand how Magento builds each website. If someone could give me a little hint on how to achieve change that link would you do me very happy, it took a long time trying it on my own and looking online but can not find how to do any guestbook or forum that explains how to work well with Magento, in my language, there are hardly any documentation on Magento, so I decided to try my luck in this forum and I've read on several pages that involves many professionals in the e-commerce. Thanks in advance to all who devote their time to read my question.
I don't really understand what you want.
But if you want to change the base URL, you can do that by accessing database via phpMyAdmin, find the table core_config_data and change the URL in the web/unsecure/base_url and web/secure/base_url to what you want.
Not the url of the page, but the url of a link. Try clicking on "Peluche del mes" and see what comes out, gives access to http://www.peluches-cel.com/peluche-del-mes, I want access to http://www.peluches-cel.com/oso-tiziano-2col-40cm directly. The problem is NOT EXISTS peluches-cel.com/oso-tiziano-2col-40cm page on FTP, to be done in PHP there are different functions that are responsible for creating it at the time of the request I need to change the link to "Peluche del mes", if you see with firebug or any other source code analyzer, the source code of the page you will see that line 146 is managed that link, but I can not directly access the code ¿do you understand me? through an ftp client no such file or html as php magento works with the model view controller, that's my problem. Thank you again.