jeudi 30 avril 2015

.htaccess redirecting only pages with no subfolder

I am using .htaccess to redirect pages from an old website to a new site. The URL structure has changed completely, but thanks to a SEO person I have a complete list of URLs I have to redirect and take care of.

My .htaccess looks like the following:

Options +FollowSymlinks
RewriteEngine On
Redirect 301 /some-guy http://ift.tt/1GHXWkX
Redirect 301 /some-other-guy http://ift.tt/1GHXWkX
...
Redirect 301 /de/some-page http://ift.tt/1GHXUcH
Redirect 301 /de/another/page http://ift.tt/1GHXWl3

Of course the URLs can be even longer and contain query strings and stuff like that. The new website has a different URL structure and does not need query strings and nothing.

Now, while the first two redirects work perfectly, every redirect which contains a subfolder fails to redirect to the target location. The last URL for example redirects to

http://ift.tt/1JCzBk5

What am I missing here?

Aucun commentaire:

Enregistrer un commentaire