You are here: Re: rewriting URLs, part II -- 301 redirect from old dynamic URLs « All PHP « IT news, forums, messages
Re: rewriting URLs, part II -- 301 redirect from old dynamic URLs

Posted by web_design on 07/31/05 19:30

"Janwillem Borleffs" <jw@jwscripts.com> wrote in message
news:42ecf048$0$4215$dbd45001@news.euronet.nl...
> web_design wrote:
>> Thanks... I added the forward slash but it still isn't working. I
>> think the problem now is in the first part, because it doesn't try to
>> redirect at all. /index.php?p=(.*)$
>>
>
> Try it with an indication of the start of the path as in:
>
> RedirectMatch 301 ^/index.php?p=(.*)$

It's still not working for some reason. Do you think the [L] might be a
problem? Does [R] mean "redirect" and do I need to add that somewhere?

The .htaccess file looks like this now:

RewriteEngine On
RewriteRule ^(.+)(\.htm)$ /index.php?p=$1 [L]

RedirectMatch 301 ^/index.php?p=(.*)$ http://www.mywebsite1234.com/$1.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация