lunes, 20 de agosto de 2018

Tricky issue with website relaunch + http to https earn by blogging adsense income

So I've been googling this for a solid 3 hours now and can't find anyone with the same problem.

I've just relaunched my website and I'm now 301ing all the old urls from the old website to their new corresponding pages as the path structure changed drastically. In the relaunch, I also changed from http to https. So in testing that the 301 redirects work directly, i put the urls into my browser.
r/https://www.example.com/old/junk/from/oldwebsite/product123/ will successfully redirect to the new r/https://www.example.com/product=123

So that's working how I want it. But the thing is, the old website wasn't https, and as a result all the indexed pages are http. So If i test the redirect as r/http://www.example.com/old/junk/from/oldwebsite/product123/ or www.example.com/old/junk/from/oldwebsite/product123/ it just redirects me to www.example.com with no path, only the index.

I can't figure out how to redirect to all the new URLs with this in mind. Any help would be appreciated.
This is what I have in my .htaccess in case something here is throwing it off.

#Force www:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.example.com [NC]

RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301,NC]

Redirect 301 /old/junk/from/oldwebsite/product123.html https://example.com/product-page.php?sku=product123

submitted by /u/imnotgaynicedadbtw
[link] [comments]

from Search Engine Optimization: The Latest SEO News https://ift.tt/2MsBCYO
via IFTTT
how to make money out of blogging

how much money do bloggers make? can blogs make money? make money off ads how to get money from blogging? best websites to make money blog adsense income earn from blogging website ideas to make money how websites make money?

No hay comentarios.:

Publicar un comentario