Automatic mod-rewrite redirecting

5 views
Skip to first unread message

Alexander Obuhovich

unread,
Jan 15, 2010, 4:52:50 AM1/15/10
to In-Portal Development
1. I propose we redirect with 301 code (moved permanently) in case if user visits non-rewrited url, when mod-rewrite is currently enabled.
2. Also we could redirect to "index" template (maybe with same code) in case if user just types site url without concrete page.

This will make google analytics statistics more readable and google will be happy to automatically update it's search index.

3. Don't include any kind of page tracking code (e.g. google analytics), when admin is editing site contents (front-end in a frame) so page tracker won't count any fake visits.

--
Best Regards,

http://www.in-portal.org
http://www.alex-time.com

Dmitry A.

unread,
Jan 15, 2010, 9:47:28 AM1/15/10
to In-Portal Development Team
This sounds like a good add-on plus we have done this somewhere
already - just need to refactor now.

Do you think we should include this in 5.0.3 as a bug/task or 5.1.0 is
better?

DA.

Alexander Obuhovich

unread,
Jan 15, 2010, 9:59:44 AM1/15/10
to in-por...@googlegroups.com
Yes, of course. For this to work we should apply patch for GW_NOTIFY constant for In-Commerce. Otherwise payment gateway notification scripts will fail to work properly.

--
You received this message because you are subscribed to the Google Groups "In-Portal Development Team" group.
To post to this group, send email to in-por...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-dev?hl=en.



Dmitry A.

unread,
Jan 15, 2010, 10:53:38 AM1/15/10
to In-Portal Development Team
I guess you meant we should include it in 5.1.0 since that task with
gateway:

531: Define additional constant to be able to identify how exactly
processIdentification of payment gateway is called

http://tracker.in-portal.org/view.php?id=531

Is in that 5.1.0 release so far.

However it's an In-Commerce so can be pretty much anywhere including
5.0.3, so what's your opinion 5.0.3 or 5.1.0?


DA.

> > in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>

Alexander Obuhovich

unread,
Jan 15, 2010, 2:00:57 PM1/15/10
to in-por...@googlegroups.com
That In-Commerce task is really small. I'm voting for moving it to 5.0.3.

To unsubscribe from this group, send email to in-portal-de...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/in-portal-dev?hl=en.



Dmitry V. Andrejev

unread,
Jan 15, 2010, 2:07:11 PM1/15/10
to in-por...@googlegroups.com
I agree and also for 5.0.3

Let's give it a day to see if anyone else wants to vote ;)


-- 
With best regards,

DA

Dmitry A.

unread,
Jan 18, 2010, 4:03:53 PM1/18/10
to In-Portal Development Team
Okay, time is up.

1. Let's move this task from 5.1.0 to 5.0.3:

531: Define additional constant to be able to identify how exactly
processIdentification of payment gateway is called

http://tracker.in-portal.org/view.php?id=531

2. Let's create a new task in 5.0.3 for a task original Described
here:


Alex, would please do above things.


DA.

On Jan 15, 1:07 pm, "Dmitry V. Andrejev" <dandre...@gmail.com> wrote:
> I agree and also for 5.0.3
>
> Let's give it a day to see if anyone else wants to vote ;)
>
> --
> With best regards,
>
> DA
>
> On 1/15/2010 1:00 PM, Alexander Obuhovich wrote:
>
>
>
> > That In-Commerce task is really small. I'm voting for moving it to 5.0.3.
>

> > On Fri, Jan 15, 2010 at 5:53 PM, Dmitry A. <dandre...@gmail.com
> > <mailto:dandre...@gmail.com>> wrote:
>
> >     I guess you meant we should include it in 5.1.0 since that task with
> >     gateway:
>
> >     531: Define additional constant to be able to identify how exactly
> >     processIdentification of payment gateway is called
>
> >    http://tracker.in-portal.org/view.php?id=531
>
> >     Is in that 5.1.0 release so far.
>
> >     However it's an In-Commerce so can be pretty much anywhere including
> >     5.0.3, so what's your opinion 5.0.3 or 5.1.0?
>
> >     DA.
>
> >     On Jan 15, 8:59 am, Alexander Obuhovich <aik.b...@gmail.com

> >     <mailto:aik.b...@gmail.com>> wrote:
> >     > Yes, of course. For this to work we should apply patch for GW_NOTIFY
> >     > constant for In-Commerce. Otherwise payment gateway notification
> >     scripts
> >     > will fail to work properly.
>
> >     > On Fri, Jan 15, 2010 at 4:47 PM, Dmitry A. <dandre...@gmail.com

> >     <mailto:dandre...@gmail.com>> wrote:
> >     > > This sounds like a good add-on plus we have done this somewhere
> >     > > already - just need to refactor now.
>
> >     > > Do you think we should include this in 5.0.3 as a bug/task or
> >     5.1.0 is
> >     > > better?
>
> >     > > DA.
>
> >     > > On Jan 15, 3:52 am, Alexander Obuhovich <aik.b...@gmail.com

> >     <mailto:in-por...@googlegroups.com>.


> >     > > To unsubscribe from this group, send email to
> >     > > in-portal-de...@googlegroups.com

> >     <mailto:in-portal-dev%2Bunsu...@googlegroups.com><in-portal-dev%2Bunsub scribe@goog
> >     legroups.com <http://legroups.com>>


> >     > > .
> >     > > For more options, visit this group at
> >     > >http://groups.google.com/group/in-portal-dev?hl=en.
>
> >     > --
> >     > Best Regards,
>
> >     >http://www.in-portal.orghttp://www.alex-time.com

> >     <http://www.alex-time.com>
>
> >     --
> >     You received this message because you are subscribed to the Google
> >     Groups "In-Portal Development Team" group.
> >     To post to this group, send email to
> >     in-por...@googlegroups.com

> >     <mailto:in-por...@googlegroups.com>.


> >     To unsubscribe from this group, send email to
> >     in-portal-de...@googlegroups.com

> >     <mailto:in-portal-dev%2Bunsu...@googlegroups.com>.


> >     For more options, visit this group at
> >    http://groups.google.com/group/in-portal-dev?hl=en.
>
> > --
> > Best Regards,
>
> >http://www.in-portal.org
> >http://www.alex-time.com
>

> > ------------------------------------------------------------------------

Alexander Obuhovich

unread,
Jan 19, 2010, 9:31:48 AM1/19/10
to in-por...@googlegroups.com
Done. New task created: http://tracker.in-portal.org/view.php?id=548  (0000548: Automatic mod-rewrite redirecting)
--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Alexander Obuhovich

unread,
Feb 3, 2010, 2:33:19 PM2/3/10
to in-por...@googlegroups.com
Task http://tracker.in-portal.org/view.php?id=531 was splitted and moved into 5.1.0 release and part of it was moved to
http://tracker.in-portal.org/view.php?id=566  (0000566: Don't include tracking code during site content editing in browse modes) - 5.0.3 release.

Dmitry A.

unread,
Feb 3, 2010, 4:59:28 PM2/3/10
to In-Portal Development Team
Thanks for doing this Alex.

I am working on "566: Don't include tracking code during site content
editing in browse modes" task and have a question:

Can't seem to find "cms_DefaultIndextoolsCode_SSL" and
"cms_DefaultIndextoolsCode" variables anywhere in install_data.sqls or
in my local DB install.

We are referring to them in function PageInfo($params) method.

Did you every saw these things?

DA.

On Feb 3, 1:33 pm, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> Taskhttp://tracker.in-portal.org/view.php?id=531was splitted and moved
> into 5.1.0 release and part of it was moved tohttp://tracker.in-portal.org/view.php?id=566 (0000566: Don't include


> tracking code during site content editing in browse modes) - 5.0.3 release.
>

> On Tue, Jan 19, 2010 at 4:31 PM, Alexander Obuhovich <aik.b...@gmail.com>wrote:
>
>
>
>
>
> > Done. New task created:http://tracker.in-portal.org/view.php?id=548
> > (0000548: Automatic mod-rewrite redirecting)
>

> >> > >     > > in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>
> >> > >     <mailto:in-portal-dev%2Bunsu...@googlegroups.com<in-portal-dev%252Bunsu bsc...@googlegroups.com>><in-portal-dev%2Bunsub


> >> scribe@goog
> >> > >     legroups.com <http://legroups.com>>
> >> > >     > > .
> >> > >     > > For more options, visit this group at
> >> > >     > >http://groups.google.com/group/in-portal-dev?hl=en.
>
> >> > >     > --
> >> > >     > Best Regards,
>
> >> > >     >http://www.in-portal.orghttp://www.alex-time.com
> >> > >     <http://www.alex-time.com>
>
> >> > >     --
> >> > >     You received this message because you are subscribed to the Google
> >> > >     Groups "In-Portal Development Team" group.
> >> > >     To post to this group, send email to
> >> > >     in-por...@googlegroups.com
> >> > >     <mailto:in-por...@googlegroups.com>.
> >> > >     To unsubscribe from this group, send email to

> >> > >     in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>
> >> > >     <mailto:in-portal-dev%2Bunsu...@googlegroups.com<in-portal-dev%252Bunsu bsc...@googlegroups.com>


> >> >.
> >> > >     For more options, visit this group at
> >> > >    http://groups.google.com/group/in-portal-dev?hl=en.
>
> >> > > --
> >> > > Best Regards,
>
> >> > >http://www.in-portal.org
> >> > >http://www.alex-time.com
>
> >> ------------------------------------------------------------------------
>
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> > > Groups "In-Portal Development Team" group.
> >> > > To post to this group, send email to in-por...@googlegroups.com.
> >> > > To unsubscribe from this group, send email to

> >> > > in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>


> >> .
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/in-portal-dev?hl=en.
>
> >> --

> >> You received this message because you are subscribed to the Google Groups
> >> "In-Portal Development Team" group.
> >> To post to this group, send email to in-por...@googlegroups.com.
> >> To unsubscribe from this group, send email to

> >> in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>


> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/in-portal-dev?hl=en.
>
> > --
> > Best Regards,
>

Alexander Obuhovich

unread,
Feb 4, 2010, 9:25:58 AM2/4/10
to in-por...@googlegroups.com
This is interesting note. I will crawl through repository history to find any traces of those variables myself.

To unsubscribe from this group, send email to in-portal-de...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/in-portal-dev?hl=en.

Dmitry A.

unread,
Feb 6, 2010, 1:42:18 PM2/6/10
to In-Portal Development Team
Hi Alex,

Anything interesting here?


Cheers

DA.

On Feb 4, 8:25 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> This is interesting note. I will crawl through repository history to find
> any traces of those variables myself.
>
>
>
>
>
> On Wed, Feb 3, 2010 at 11:59 PM, Dmitry A. <dandre...@gmail.com> wrote:
> > Thanks for doing this Alex.
>
> > I am working on "566: Don't include tracking code during site content
> > editing in browse modes" task and have a question:
>
> > Can't seem to find "cms_DefaultIndextoolsCode_SSL" and
> > "cms_DefaultIndextoolsCode" variables anywhere in install_data.sqls or
> > in my local DB install.
>
> > We are referring to them in function PageInfo($params) method.
>
> > Did you every saw these things?
>
> > DA.
>
> > On Feb 3, 1:33 pm, Alexander Obuhovich <aik.b...@gmail.com> wrote:

> > > Taskhttp://tracker.in-portal.org/view.php?id=531wassplitted and moved


> > > into 5.1.0 release and part of it was moved tohttp://

> > tracker.in-portal.org/view.php?id=566 (0000566: Don't include

> > > >> > >     <mailto:in-portal-dev%2Bunsu...@googlegroups.com<in-portal-dev%252Bunsu bsc...@googlegroups.com><in-portal-dev%252Bunsu


> > bsc...@googlegroups.com>><in-portal-dev%2Bunsub
> > > >> scribe@goog
> > > >> > >     legroups.com <http://legroups.com>>
> > > >> > >     > > .
> > > >> > >     > > For more options, visit this group at
> > > >> > >     > >http://groups.google.com/group/in-portal-dev?hl=en.
>
> > > >> > >     > --
> > > >> > >     > Best Regards,
>
> > > >> > >     >http://www.in-portal.orghttp://www.alex-time.com
> > > >> > >     <http://www.alex-time.com>
>
> > > >> > >     --
> > > >> > >     You received this message because you are subscribed to the
> > Google
> > > >> > >     Groups "In-Portal Development Team" group.
> > > >> > >     To post to this group, send email to
> > > >> > >     in-por...@googlegroups.com
> > > >> > >     <mailto:in-por...@googlegroups.com>.
> > > >> > >     To unsubscribe from this group, send email to
> > > >> > >     in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>
> > <in-portal-dev%2Bunsubscribe@goog legroups.com>

> > > >> > >     <mailto:in-portal-dev%2Bunsu...@googlegroups.com<in-portal-dev%252Bunsu bsc...@googlegroups.com><in-portal-dev%252Bunsu

Alexander Obuhovich

unread,
Feb 6, 2010, 2:26:16 PM2/6/10
to in-por...@googlegroups.com
Haven't much time lately, will look into it next week.

To unsubscribe from this group, send email to in-portal-de...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/in-portal-dev?hl=en.

Alexander Obuhovich

unread,
Feb 27, 2010, 2:33:03 PM2/27/10
to in-por...@googlegroups.com
You were right. I've searched through our repository and there never were such configuration variables like cms_DefaultIndextoolsCode_SSL and cms_DefaultIndextoolsCode in any of our projects.

Looks like we need to create them in proper place and maybe rename to match global naming ideas of configuration variables.

Alexander Obuhovich

unread,
Feb 28, 2010, 7:39:59 AM2/28/10
to in-por...@googlegroups.com
Also there is no need to for two separate configuration variables, since most of page tracking code is javascript and it can determine itself (like google analytics code) if page has been viewed in http:// or https://. Maybe name "cms_DefaultIndexTools" will work out, because we have "IndexTools" field for categories.

Dmitry A.

unread,
Mar 12, 2010, 12:43:12 AM3/12/10
to In-Portal Development Team
To be Honest I don't like IndexTools part here "cms_DefaultIndexTools"

This variable contains Tracking Code and I think we should call it
accordingly. Example would be:

cms_TrackingCode

Also I would keep SSL one as well. It not always true that it's
checked and I think it's not too much space, but in some case it might
be needed (not for ie. Google Analytics)

cms_TrackingCode_SSL

DA.

On Feb 28, 6:39 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> Also there is no need to for two separate configuration variables, since
> most of page tracking code is javascript and it can determine itself (like
> google analytics code) if page has been viewed in http:// or https://. Maybe
> name "cms_DefaultIndexTools" will work out, because we have "IndexTools"
> field for categories.
>

> On Sat, Feb 27, 2010 at 9:33 PM, Alexander Obuhovich <aik.b...@gmail.com>wrote:
>
>
>
> > You were right. I've searched through our repository and there never were

> > such configuration variables like *cms_DefaultIndextoolsCode_SSL* and *
> > cms_DefaultIndextoolsCode* in any of our projects.


>
> > Looks like we need to create them in proper place and maybe rename to match
> > global naming ideas of configuration variables.
>

> > On Sat, Feb 6, 2010 at 9:26 PM, Alexander Obuhovich <aik.b...@gmail.com>wrote:
>
> >> Haven't much time lately, will look into it next week.
>

> >>> bsc...@googlegroups.com><in-portal-dev%252Bunsu
> >>> > > bsc...@googlegroups.com>
> >>> > > > >> >.
> >>> > > > >> > >     For more options, visit this group at
> >>> > > > >> > >    http://groups.google.com/group/in-portal-dev?hl=en.
>
> >>> > > > >> > > --
> >>> > > > >> > > Best Regards,
>
> >>> > > > >> > >http://www.in-portal.org
> >>> > > > >> > >http://www.alex-time.com
>
> >>> ------------------------------------------------------------------------
>
> >>> > > > >> > > --
> >>> > > > >> > > You received this message because you are subscribed to the
> >>> Google
> >>> > > > >> > > Groups "In-Portal Development Team" group.
> >>> > > > >> > > To post to this group, send email to
> >>> > > in-por...@googlegroups.com.
> >>> > > > >> > > To unsubscribe from this group, send email to
> >>> > > > >> > > in-portal-de...@googlegroups.com<in-portal-dev%2Bunsubscribe@goog legroups.com>
> >>> <in-portal-dev%2Bunsubscribe@goog legroups.com>
>

> ...
>
> read more »

Alexander Obuhovich

unread,
Mar 12, 2010, 3:10:35 AM3/12/10
to in-por...@googlegroups.com
What cases exactly? Those variable were missing since IndexTools functionality was firstly developed. Most of tracking code is javascript and what's not javascript could be converted to it. Since we don't have separate field in category table for ssl tracking code making separate field in configuration doesn't help much. And for google analytics we need to copy same code in two fields?
Reply all
Reply to author
Forward
0 new messages