Thread Starter
Meiji
(@meiji_lythtis)
The step 4 I did it in the data base using this code:
SELECT * from wp_options where option_value like ‘%172.132.something.something%’;
And then I manually change them to net-channel.tv
KB
(@kespinoza)
I’ve run into this problem before and resaved the permalinks options and that resolved it.
Something I’ve done is make a copy of the sql file and then do a find/replace of the url and links before importing.
Thread Starter
Meiji
(@meiji_lythtis)
Thank you kespinoza! Since my client has it on a Windows Server, the common solutions doesn’t work. But I could find out the solution and I’m posting it here in case someone else has the (unpleasant) chance to work with a Windows Server (first would be advicing the client to migrate to a Linux Server :P).
Windows Servers use a file called ‘web.config’, so, all I did was create it, like this:
<?xml version=”1.0″?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value=”index.php” />
<add value=”index.php” />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name=”Main Rule” stopProcessing=”true”>
<match url=”.*” />
<conditions logicalGrouping=”MatchAll”>
<add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
</conditions>
<action type=”Rewrite” url=”index.php/{R:0}” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
This solves the problem I was having, however, it’s highly adviced to migrate to a Linux Server, since configuration problems with some plugins persist. I’m advicing the client to migrate, hope they agree. 😛
Cheers!!
Thanks Meiji
actually I have similar problem now, (after uploading DB, WP with Themes ‘n plugins – everything works fine but themes didn’t take any action, it seems like it does not have a CSS file or image folder )
So, I’m thinking of trying your method but I don’t know where to put that file called “web.config”.
thanks again
Hello Everyoen,
Me too face a similar problem,the images and the plugins does’nt work in my livesite,the site:(http://punnakai.com/preview).I have pasted these codes into my phpmyadmin,as a sql query(but does’nt reflect any change).
UPDATE wp_posts SET post_content = REPLACE (post_content, ‘src=”http://www.oldsiteurl.com’, ‘src=”http://yourcdn.newsiteurl.com’);
UPDATE wp_posts SET guid = REPLACE (guid, ‘http://www.oldsiteurl.com’, ‘http://yourcdn.newsiteurl.com’) WHERE post_type = ‘attachment’;
(i have replaced the oldsite site url&new site url with mine)
Also am puzzled what is your cdn here?