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
Redirect 301 /some-other-guy
Redirect 301 /de/some-page
Redirect 301 /de/another/page

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

What am I missing here?

Aucun commentaire:

Enregistrer un commentaire