06,Nov - Author Steve Peron
While I was cleaning up URL structures on an Open Cart eCommerce platform I ran into an problem with the 301 redirections. Every time I would use the following code I would get a ? (question mark) appending the URL:
code: RedirectPermanent /old-url http://www.sample.com/new-url
I found out the correct solution for this was to use a RewriteRule:
code: RewriteRule ^old-url$ http://www.sample.com/new-url [L,R=301]
Notice on the “old URL” I did not include the domain or the starting directory /.
Using this code will hopefully help save you time as it did for me. Please be careful when modifying .htaccess files as it can take your site down faster than Mohammad Ali could in his prime!
If you have any feedback or suggestions please comment below.
On side note I would not recommend ...
25,Jun - Author Ricardo Figueiredo
A good friend of mine just shared a blog post from SEOmoz with me a few mornings ago. I don’t keep up too much with SEOmoz these days, so it’s good to have someone point out when they write something that is more relevant to what I do – no offense SEOmoz, you’re cool
Last week there was a pretty interesting blog post at SEOmoz, written by Everett Sizemore, worth checking out if you are about to embark in a website redesign, relaunch, or any kind of work that will result in a change of URL structure on your site.
Sizemore’s post inspired me to breakdown what he wrote about, and add some of my own experience to the mix. While SEOmoz’s ...