ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taher Alkhateeb <slidingfilame...@gmail.com>
Subject Re: svn commit: r1806907 - /ofbiz/site/.htaccess
Date Sat, 02 Sep 2017 18:03:59 GMT
Hi Ashish,

I could be wrong, but essentially, the main menu links are left blank
So instead of redirect, you can just the default inside the link.

So for simple example .. check the below:

Index: template/region/header.tpl.php
===================================================================
--- template/region/header.tpl.php      (revision 1806680)
+++ template/region/header.tpl.php      (working copy)
@@ -18,7 +18,7 @@
                 <li><a href="business-users.html"
class="last">Business Users</a></li>
               </ul>
             </li>
-            <li><a href="" class="firstLevel<?php if
(basename($page_name) == 'news.tpl.php'):?> active<?php
endif;?>">News</a>
+            <li><a href="//twitter.com/apacheofbiz"
class="firstLevel<?php if (basename($page_name) == 'news.tpl.php'):?>
active<?php endif;?>">News</a>
               <ul>
                 <li><a href="//twitter.com/apacheofbiz"
target="external">Twitter</a></li>
                 <li><a href="//blogs.apache.org/ofbiz/"
target="external" class="last">Blog</a></li>

On Sat, Sep 2, 2017 at 3:00 PM, Ashish Vijaywargiya
<ashish.vijaywargiya@hotwaxsystems.com> wrote:
>>> You just need to set the default
> links inside the templates
>
> Can you please give more details on this? May be some example reference
> will be of great help.
> Deepak discussed the idea with me of writing redirect rules. If any of the
> old URL is crawled in the Google and we don't want to support that URL in
> the new website then we concluded to do a permanent redirect to a specific
> new URL.
>
> --
> Kind Regards
> Ashish Vijaywargiya
> HotWax Systems - est. 1997 <http://www.hotwaxsystems.com/>
>
>
> On Fri, Sep 1, 2017 at 2:47 PM, Taher Alkhateeb <slidingfilaments@gmail.com>
> wrote:
>
>> Hi Deepak ...
>>
>> I don't think you need a rewrite rule. You just need to set the default
>> links inside the templates
>>
>> On Sep 1, 2017 12:14 PM, <deepak@apache.org> wrote:
>>
>> > Author: deepak
>> > Date: Fri Sep  1 09:14:12 2017
>> > New Revision: 1806907
>> >
>> > URL: http://svn.apache.org/viewvc?rev=1806907&view=rev
>> > Log:
>> > Added missing redirect rule in htaccess file
>> >
>> > Modified:
>> >     ofbiz/site/.htaccess
>> >
>> > Modified: ofbiz/site/.htaccess
>> > URL: http://svn.apache.org/viewvc/ofbiz/site/.htaccess?rev=
>> > 1806907&r1=1806906&r2=1806907&view=diff
>> > ============================================================
>> > ==================
>> > --- ofbiz/site/.htaccess (original)
>> > +++ ofbiz/site/.htaccess Fri Sep  1 09:14:12 2017
>> > @@ -1 +1,4 @@
>> > -ErrorDocument 404 /404.html
>> > +ErrorDocument 404 /404.html
>> > +
>> > +RewriteRule ^documentation.html /index.html [R=301,NC,L]
>> > +RewriteRule ^community.html /getting-involved.html [R=301,NC,L]
>> >
>> >
>> >
>>

Mime
View raw message