<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana">I modify the </font>rewrite rule<br>
<font face="Verdana"><br>
<br>
<VirtualHost xxx.xxx.xxx.xxx><br>
ServerName mydomain.org<br>
RewriteEngine On<br>
RewriteRule ^/article/view/([0-9]*)/(.*) /archieve/$1 [R]<br>
RewriteRule ^/zoperoot(.*)
<a class="moz-txt-link-freetext"
href="http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/VirtualHostRoot/_vh_zoperoot$1">http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/VirtualHostRoot/_vh_zoperoot$1</a>
[P,L]<br>
RewriteRule ^/(.*)
<a class="moz-txt-link-freetext"
href="http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/$1">http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/$1</a>
[P,L]<br>
</VirtualHost><br>
<br>
and it is working <br>
Thanks for the support.<br>
<br>
Subhendu<br>
<br>
</font><br>
Subhendu Kumar Giri wrote:
<blockquote cite="mid:487C5EE8.8040104@oneworld.net" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Andreas,<br>
<br>
Thanks for the response.<br>
<br>
I write in rewrite rule in httpd.conf<br>
<br>
<VirtualHost xxx.xxx.xxx.xxx><br>
ServerName mydomain.org<br>
ServerAlias <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.mydomain.org">www.mydomain.org</a><br>
ProxyPass /
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://xxx.xxx.xxx.xxx/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/">http://xxx.xxx.xxx.xxx/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/</a><br>
ProxyPassReverse /
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/">http://xxx.xxx.xxx.xxx:8080/VirtualHostBase/http/mydomain.org:80/mydomaininstance/VirtualHostRoot/</a><br>
</VirtualHost><br>
<br>
How can i redirect <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="http://www.mydomain.com/article/view/11525/1/">www.mydomain.com/article/view/11525/1/</a>
to
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.mydomain.com/archieve/11525">www.mydomain.com/archieve/11525</a><br>
<br>
<br>
Andreas Jung wrote:
<blockquote cite="mid:F0A02133162BAE12B1925ED7@%5B192.168.0.24%5D"
type="cite"><br>
<br>
--On 15. Juli 2008 13:14:53 +0530 Subhendu Kumar Giri
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:subhendu.giri@oneworld.net"><subhendu.giri@oneworld.net></a>
wrote: <br>
<br>
<blockquote type="cite">Hi All, <br>
<br>
Previously I have a website running in php. Now we migrated it to plone
<br>
2.5.5 and zope 2.9. After that I want to maintain all the previous
links <br>
. Earlier it was like <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="http://www.mydomain.com/article/view/11525/1/">www.mydomain.com/article/view/11525/1/</a>
(where <br>
11525 is the article id). Now I created a archieve folder where I <br>
migrated the contents. The new link is <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="http://www.mydomain.com/archieve/11525">www.mydomain.com/archieve/11525</a>.
I <br>
tried to redirect it from default_error_message but it did not work as
it <br>
shows the folder contents of article folder. <br>
<br>
What should be done to redirect the old url to new url. <br>
</blockquote>
<br>
Apache rewrite rules? <br>
<br>
-aj<br>
</blockquote>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; ">
<title>Subhendu Kumar Giri</title>
<p><font color="#669999" face="Verdana" size="2">Subhendu Kumar Giri [<span
lang="hi">शुभेन्दु कुमार गिरि</span>]</font><br>
<font color="#669999" face="Verdana" size="2">
<a href="http://southasia.oneworld.net/"
style="text-decoration: none; font-weight: 700;"><font color="#008080"></font></a></font><font
color="#669999" face="Verdana" size="2"><br>
</font></p>
</div>
</body>
</html>