prestashop url's not working after domain change - prestashop

I moved a Prestashop (1.6) to a new domain. I see the shop at the new domain and can login in the admin panel, but al the product, categorie and other links of sub pages are not working. For all I see the message that I'm on a old link, but "'m still at the new domain.
I have changed the domain in the admin under Prefences -> SEO and URL's.
Any idea?

Like #Florian Lemaitre said try to do next:
On Prefences -> SEO and URL's switch Off and then On "Friendly URL", it will regenerate your .htaccess file.
On Performance tab clear Smarty cache.

Can you check your .htaccess file at the root of your website to see if it has been updated with the new domain ?
If not go back to SEO and URL's and save your configuration again. If the .htaccess is still not updated Prestashop might not have the required rights to edit it.

Related

Prestashop 1.7: How to set CMS page as homepage

Can anyone please help me with is question here. I want to set a CMS page as homepage in prestashop 1.7 and still able to keep the old default Prestashop homepage as my Shop button link in menu still?
Best way is to make a redirection, because on the Prestashop backend you cannot do that easely and it could harm your website. You can also build your own Html and integrate it on the homepage via a module.
But best seems to be with a redirection :
Your server uses apache, just add this line to the .htaccess :
Redirect 301 /retiredpage.html /newpage.html
Your server uses nginx, add this line to your configuration : rewrite ^/retiredpage.html$ /newpage.html permanent;
You don't know and you don't want that ? Just use a redirection module, there are many on Prestashop Addons.
On the index.php page at the root of the site, replace the code with that:
require(dirname(__FILE__).'/config/config.inc.php');
if(Tools::getValue('home')) {
Dispatcher::getInstance()->dispatch();
} else {
$link = new Link();
Tools::redirect($link->getCMSLink(ID_PAGE_CMS));
}
Then if you go on the homepage you will be redirected to the CMS page for which you have indicated the link, to go via the menu on the real home page, add? Home at the end of the url of your website www.yourwebsite.tld? home

.htaccess rewrite domain but keep directory structure and preserve url in address bar

I have copied a Joomla site from one domain to a new domain.
I want to rewrite the domain name only to keep the directory structure.
And I want to keep the original URL in the address bar to preserve SEO ranking.
Joomla is using relative url's, so the real domain name of the new server will not as such be invoked by Joomla.
How to do this in .htaccess on Apache?
And I want to keep the original URL in the address bar to preserve SEO ranking.
That won't help you really, just add proper 301 redirects and make sure you catch as much of the indexed url's with your redirects component within joomla to prevent any dead links (google hates those and will penalize your domain for it). Also add sitemap, upload it to your google webmaster tools and ask google to index it.

I purchased ssl from godaddy but domain url redirection have issue

i dont know whats wrong with my settings .i am using opencart 2.3.0.2 .Enabled ssl from settings of my cms.
when i run
https:sharishari.com
it works fine.
i want when i or any one enter my domain name sharishari.com it should redirect to https:sharishari.com
each time i have to write complete url with https to go on https.
and second thing its view is non responsive and non functional when i write
sharishari+ctrl Enter .
here is my
root config file
i removed www from the domain
and admin
config file
https://codeshare.io/2pAlLV
i just shared the above part .db part excluded in sharing
Please i will be very thankful if somebody sort out my problem.best regards
After enabling SSL from your open cart backed, first of all, you will have to update your config files for both catalog and admin. You will have to edit link as "https".
Apart from that, you will have to edit your links provided on header.tpl. Just find and replace all 'http' to 'https'. You can find header.tpl at catalog/view/theme/themename/common/header.tpl
Hope that helps.
You need to change in both
config.php
admin/config.php
to https:
also go to your catalog/view/thene/YOURTHEME/common/header.tpl
And their all of your scripts, css files and so forth to https
And easy way to find them do a ctrl+f search on http and you will find the,
If you have any custom code like social media links, you need to change them to https aswell.
OK you need to redirect to HTTPS (opencart does not do this when enabling SSL) and you need to edit your theme header file, see Innervisions comment
Opencart only switches to SSL on checkout, account, login, etc pages.

Old urls match new urls of site

guys i have one old site which is in joomla (that is not important). The site has unfriendly urls with too munch get parameters. Example of the urls:
http://example.com/index.php?option=com_content&task=view&id=1088&Itemid=245
So we will rebuild this site on custom our platform. The site have too munch urls in forums and so on.
So basicaly we want when you got from the old urls on the site to be redirected to the new post or whatever it is.
Solution what i have think that it will work.
Every article/post have a old url field in the database and you match the new address with the old address.
You have a panel in the admin area Generate htaccess and when you generate htaccess from the admin it get the old htaccess get all matched urls (old/new) and recreate it.
The think is that i have never do this and i don't know what problems could have the system after this.
Anyone who faced this kind of challenge?

How to tell Google a page has moved?

We have #1 and #2 spots we would like to keep, but because of the way things were jumbled we have to migrate to a new domain.
We do not want the new domain to be penalized for duplicate content, we want it to naturally take the spot on Google.
How do we tell Google our page has moved?
301 redirects are the recommended way to do this according to Google themselves. I tend to perform 301's using a .htaccess file (a few different methods here) but it can also be done using PHP like this:
header('Location: '.$newlocation, true, 301)
What seengee user has answered is perfect.
Have a look to Google Webmaster Tools too; there's a specific option for Address change.
Change of address
If you're planning to move your site to a new domain, use the Change of Address tool to tell Google about your new URL. This will help us update our index faster and smooth the transition for your users.
For best results, follow these steps:
Set up the new site
Review our guidelines for moving your site to a new domain. Set up your content on your new domain, then make sure all internal links point to the new domain.
Redirect all traffic from the old site
Use a 301 redirect to permanently redirect the pages on your old site to your new site. This tells users and search engines that your site has permanently moved. Ask webmasters to update their links to point to your new domain and make sure incoming links to your old site are redirected correctly using the 301 redirects.
Add your new site to Webmaster Tools
Make sure you have added and verified your new domain.
Tell us the URL of your new domain
Try this: https://www.google.com/webmasters/tools add both domains there and then, go Change of address.
Http 301 Request is used for Permanent Redirect the old website's content,URL and Links to New Website URL. Google Never Penalize the New Website for Duplicate content.
what about "Keyword" you use in meta for performing in SERP result. After redirection how you manage them.
position before Redirection , after redirection have same OR not.
AS SEO purpose don't make Redirection withour proper plan. First make proper optimization of "B" page before "A" redirect ( 301, 302 ) "B" page.
Dont make 302 Redirect , its spammy after 3 months, why within 20 Days SERP catche show "B" page instead of "A" page.
in the end : Before Redirection - Optimize the Destination URl - for Benefit SEOand business
Have a Nice Day ... Thanks
Google itself detect your web page if you implemented the 301, 302 or 404 redirection. But if you want to tell google that you have moved your page then:
Go to google webmaster tool
In Crawl section there is an option of Fetch as Google.
Just enter your url and check the fetch status, you will find that google will index your new url.
in google webmaster tools click on change of site address.
firstly you need to put content on new website where you want to redirect the website.
redirect usingold website by using HTTP 301 code and after verify in google webmaster tools.
Do 301 redirects. This will tell the search engines that the pages have moved and where they are now. This also associates the old URL with the new URL for Google which means all of your old incoming links will now be redirects to your new pages. Also use Google Webmaster Tools to submit XML sitemap.
In both Google and Bing Webmaster tools, you can notify a change of address. I will warn you, however, that when changing domains, you're not going to keep your current rankings.
Submit a change of address notice in Webmaster tools
Do 1:1 page redirecting (redirect all other pages that can't be mapped to a similar page to your homepage)
Submit an up-to-date sitemap
This should help:
https://support.google.com/webmasters/answer/83106?hl=en
http://moz.com/blog/achieving-an-seo-friendly-domain-migration-the-infographic