Page 1 of 1

url rewrite with .htaccess

Posted: Wed Feb 06, 2013 5:31 am
by wakabayashi
I'm using a module which doesn't support the seo-keywords for rewritting the urls. I'm confused with the .htaccess because I think it doesn't work normal. I need to rewrite 2 urls.

I want to rewrite this url:
to this:

I tried it with this rule:

Code: Select all

RewriteRule ^page/([^/]*)\.php$ /schachblog?page=$1 [L]
But its not working? What do I make wrong?

Re: url rewrite with .htaccess

Posted: Thu Feb 07, 2013 6:12 pm
by Avvici
The internet is full of good examples of how to do a proper 301 redirect. Please search and find.

And example:

Re: url rewrite with .htaccess

Posted: Thu Feb 07, 2013 10:46 pm
by wakabayashi
Thanks for you answer. But ofc i searched before I opened the Thread. I'm also been able to make normal 301 redirects. I just have the problem with the above!

In my htaccess file I have for example:

Code: Select all

RewriteRule ^Shop/Lehrmittel/$ /schach-lernen [R=301,L]
This works perfect. But where is the Problem with the code above?