Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.

You are not logged in.

#1 2010-03-18 09:04

keshav
Member

Remove "auxpage_" from url

Hi i want to make my url to show as   -     www.mysite.com/shop/about-us
Instead of it is showing as -    www.mysite.com/shop/auxpage_about-us

I mean how to remove "auxpage_"

I edit  file class.auspages.php but fail to achive the target

Please help me

Offline

 

#2 2011-11-02 08:30

vijay
Member

Re: Remove "auxpage_" from url

Any luck?

Offline

 

#3 2011-11-02 08:40

vijay
Member

Re: Remove "auxpage_" from url

Hi,

i have remove the "auxpage_" in this (SC_divisions) table.
field name is "xUnicKey".

I changed from "auxpage_contactus" to "contactus". its working fine.

My installation Installed version  305

Offline

 

#4 2011-11-02 09:01

vijay
Member

Re: Remove "auxpage_" from url

Hi ,
I have changed the below line of coding at published/SC/html/scripts/modules/auxpages/class.auxpage.php

From  ( Line no 82)
$AuxDivision->setUnicKey('auxpage_'.$_POST['aux_page_slug']);
To
$AuxDivision->setUnicKey($_POST['aux_page_slug']);

From  Line No: 97
$_POST['aux_page_slug'] = make_clean_slug($_POST['aux_page_slug'],'auxpage_',DIVISIONS_TBL,'xUnicKey','xName',$moduleEntry->getAuxPageLocalID($_GET['edit']));

To
$_POST['aux_page_slug'] = make_clean_slug($_POST['aux_page_slug'],'',DIVISIONS_TBL,'xUnicKey','xName',$moduleEntry->getAuxPageLocalID($_GET['edit']));

From  Line No 100

$_POST['aux_page_slug'] = make_clean_slug($_POST['aux_page_slug'],'auxpage_',DIVISIONS_TBL,'xUnicKey','xName',$moduleEntry->getAuxPageLocalID($_GET['edit']));

To
$_POST['aux_page_slug'] = make_clean_slug($_POST['aux_page_slug'],'',DIVISIONS_TBL,'xUnicKey','xName',$moduleEntry->getAuxPageLocalID($_GET['edit']));

From line no 352
$AuxDivision->setUnicKey('auxpage_'.(strlen($data['aux_page_slug'])?$data['aux_page_slug']:$aux_page_ID));

To
            $AuxDivision->setUnicKey((strlen($data['aux_page_slug'])?$data['aux_page_slug']:$aux_page_ID));

Offline

 

#5 2012-03-17 11:13

marknotton
Member

Re: Remove "auxpage_" from url

Hi Vijay,

Thanks for letting me know about this!

It's very exciting to hear you've managed to accomplish this. However, even after following those instructions it appears like nothing has changed.

www.mywebsite.com/auxpage_about - works
www.mywebsite.com/about - doesn't work

I'm not sure what my installed version is, I'm confident it's the latest version though.

Perhaps I'm missing something? Are there any settings or other files that need amending?

Thanks again!

Mark

Offline

 

#6 2012-03-19 00:01

vijay
Member

Re: Remove "auxpage_" from url

Hi marknotton

Pls edit your info pages. because in DB stored the url (auxpage_aboutus).
Just  Click edit and Save button

Last edited by vijay (2012-03-19 00:03)

Offline

 

#7 2012-03-31 21:06

marknotton
Member

Re: Remove "auxpage_" from url

Aha, spot on! It's the little things that make the big differences.

Thanks again Vijay.

Mark

Offline

 

#8 2012-08-26 11:07

Here2win24
Member

Re: Remove "auxpage_" from url

Good Day Vijay...., or anyone whom can assist..., I followed steps above in editing the script and then editing my pages then resaving..., however no luck..., takes me to a redirect page...?  As its discussed..., line 82 is correct but the other lines as mention your line 97 is my line 96 and line your line 100 is my 98...., as for your line 352 that is my line 349....?

Am I using a newer or older version??? little lost.

Offline

 

#9 2012-09-15 06:02

Ajay
Member

Re: Remove "auxpage_" from url

Hi Here2win24,

What error you get?

Offline

 

Board footer

Powered by PunBB