After I dumped my database and blew up my site, I wanted to resurrect my most popular content.
I needed to setup 301 redirects so both users and Google could find my (old) content in it’s (new) location. Here is a snippet of my .htaccess file.
Husband, Father, Web Developer, Outdoorsman.
After I dumped my database and blew up my site, I wanted to resurrect my most popular content.
I needed to setup 301 redirects so both users and Google could find my (old) content in it’s (new) location. Here is a snippet of my .htaccess file.
This is a very nice post on htaccess redirect . Your article is great, i like it
Just a suggestion: RedirectMatch 301 ^/\d{4}/\d{2}/(.+)(\.html)$ https://gregrickaby.com/$1/
:-)
haha lol dude i have linked to two of your posts…and they showed up as broken and then i checked wats the deal and landed on to this post…here are those two posts…
https://gregrickaby.com/2012/02/how-to-display-and-highlight-code-in-wordpress-without-a-plug-in.html
https://gregrickaby.com/2010/04/how-to-use-jquery-lazy-load-in-thesis.html
please fix em with a redirect too! thanks….and the new site design is awesome :D