AbanteCart Community

General Topics => SEO => Topic started by: mortal on March 07, 2018, 02:45:46 AM

Title: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: mortal on March 07, 2018, 02:45:46 AM
Hi. after fiddeling with seo. some older urls have been indexed. and when for some reason someone finds that url. or the search engines does that. they are left with the 404 error and landing on a rather boring site.

do you know how to either use .htaccess or alter php files to prevent 404 errors on the site ?

example of url that have changed.
strygestof.dk/hej-jeg-er-ny​-her  has a 404 error

should just show
strygestof.dk or
strygestof.dk/index.php?rt=content/sitemap
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: abolabo on March 07, 2018, 06:06:43 AM
mmm... this url https://strygestof.dk/hej-jeg-er-ny-her show me yuor site map
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: Sam_78 on March 07, 2018, 10:07:19 AM
On this note. How do I handle 404 via htaccess and redirect them to home page
lets say they open example.com and some how they click example.com/page-not-available I want to redirect them to home page after lets say 3 seconds or so
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: kunal.k91 on March 23, 2018, 01:28:03 AM
Hello
Greetings

I have yesterday launched AbanteCart cart to my website, and in the settings options when i click on SEO Friendly URL option.
After selecting that option it leads my all product pages to get redirected on the homepage itself, inserted of Product particular page, It leads all products to redirect on the home page. But in the url it shows the product seo friendly url but redirects to home page

Please find out the solution and let me know.

I am looking so much forward to work on AbanteCart.

Thankyou
Waiting
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: Basara on March 23, 2018, 01:34:53 AM
I have yesterday launched AbanteCart cart to my website, and in the settings options when i click on SEO Friendly URL option.
After selecting that option it leads my all product pages to get redirected on the homepage itself, inserted of Product particular page, It leads all products to redirect on the home page. But in the url it shows the product seo friendly url but redirects to home page

Hello. You did not complete SEO Urls setup. One more step required please read help note near SEO Urls setting or full article in docs https://abantecart.atlassian.net/wiki/spaces/AD/pages/7962664/SEO+URL+s
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: kunal.k91 on March 23, 2018, 02:58:23 AM
Hello
Thank You Mr Basara.
I have did the same this as shown in the video of the link provided by you.
But after doing that i am facing an error 500 (Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.) On some products, but the some products which are opening are not having an SEO Frendly URL.


Please help
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: Basara on March 23, 2018, 03:11:01 AM
I suggest you to contact your hosting support
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: kunal.k91 on March 23, 2018, 03:13:04 AM
Thankyou once again.

Yes i will contact them shortly but what i have to ask them .

If you guide me some i can be in much better position to understand.

THnkayou
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: Basara on March 23, 2018, 03:16:12 AM
Tell them you have an 500 error after you enable htaccess
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: abolabo on March 23, 2018, 04:50:13 AM
Also you can find 500 error description inside httpd.error log of your CPanel.
If there nothing - ask hosting provider support.
Title: Re: method of turning 404 errors into 301 redirects to the main page or sitemap
Post by: kunal.k91 on March 23, 2018, 05:12:42 AM
Hello
Greetings.

I really appreciate your Fast replyies and help.

As you have asked me to , I had a word with my Hosting Provider.
And they have told me that there are many Redirections after they checked with the error loggs.
They have asked me the reduce that redirection from .htaccess file.

Can you please help me in much better way to resolve this issue as i need this to be clear up and start other changes in my website.
So that i can launch that as sooner.
Thankyou
Waiting