Jump to content


- - - - -

URL rewriting


  • Please log in to reply
5 replies to this topic

#1 jazman

jazman

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:James
  • IPB Version:v3.2.x

Posted 02 January 2012 - 06:17 AM

hey, i originally posted this on the official IPB forums but it got no response, which is unusual as people are usually quite helpful there, i hope i can find some help here.
I have an issue with url rewriting i think.

IT involves IP content, other applications and the main board. Firstly i have them both enabled, and work fine on their own. I have my forums located in public_html/forum and my IP content index is set up in Public_html/ On the most parts this all works fine for friendly url, for example the forums show up as /forum/ instead of index.phpblahblahblah and same with any pages on there like the members page and calendar (forum/members, forum/calendar)

When i create pages in IP content they show up fine as well, for example www.domain.com/guidelines which is what i want. The first page you come to on the site is the index.php of ip content which is also fine. Just shows up as www.domain.com. However if i where to navigate away from that page to the forums for example, and then go back the the ip content page using the link in the menu bar, it shows up as /forum/index.php?app=ccs, and the same with any third party apps such as the contact form or arcade mod.

Is this normal? or have i done something wrong. its no big issue its just slightly annoying to look at xD

thanks for any help on this

EDIT: ive also noticed that when viewing the active users list, you can only see what Guests are viewing, you can't see what any other member is viewing, and cant find any options in ACP to change this :( it just says "Viewing the community index" for everyone apart from guests

#2 jazman

jazman

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:James
  • IPB Version:v3.2.x

Posted 02 January 2012 - 03:51 PM

i hope someone can help, ive been trying to sort it for a while :(

#3 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 02 January 2012 - 10:36 PM

The home URL is probably due to the URL you set under "Website Address" in System Settings > General Configuration.
And some 3rd party apps don't come with friendly URLs.

#4 jazman

jazman

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:James
  • IPB Version:v3.2.x

Posted 03 January 2012 - 02:40 PM

View PostMartin, on 02 January 2012 - 10:36 PM, said:

The home URL is probably due to the URL you set under "Website Address" in System Settings > General Configuration.
And some 3rd party apps don't come with friendly URLs.

Thanks for the response, i had a look, and i left it blank, so i put in the web adress to see if it would make a difference and unfortunately it did not :(

#5 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 03 January 2012 - 09:51 PM

Go to ACP > Manage Applications. Click the edit icon next to "Content", and go to the "Tab Permissions" tab, and enable "Hide for all current and future groups?". This will remove IP.Content from the navigation bar.
Then go to the settings I mentioned in my previous post, and enter your website URL there, and set "Home" as your "Website name".
Posted Image

#6 jazman

jazman

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:James
  • IPB Version:v3.2.x

Posted 04 January 2012 - 12:50 AM

View PostMartin, on 03 January 2012 - 09:51 PM, said:

Go to ACP > Manage Applications. Click the edit icon next to "Content", and go to the "Tab Permissions" tab, and enable "Hide for all current and future groups?". This will remove IP.Content from the navigation bar.
Then go to the settings I mentioned in my previous post, and enter your website URL there, and set "Home" as your "Website name".

Ah i think this may be where my problem lies, you see the tab is already hidden, i did that so that i could rearrange my menu bar more appropriately, I hid the tab from view, and then edited the global template, i made it show a new tab which links to the IP content system, see here:

{parse variable="ccsActive" default="" oncondition="IPS_APP_COMPONENT == 'ccs'" value="active"}<li id='nav_ccs' class='left {parse variable="ccsActive"}'><a href='{parse url="app=ccs" seotitle="false" base="public"}' title='{$this->lang->words['go_to_ccs']}'>{IPSLib::getAppTitle( 'ccs' )}</a></li>

This was so i could get it to be first on the list, before forums.

EDIT: I re-enabled the tab just to check if what i said above was correct, and it turns out it didn't make a difference. So i have followed your instructions and realised what it did, added a home button. My only issues with this is that it doesnt show you as tabbed to that like it would if you went to the forum, however it is only a very tiny thing so i can live with it Posted Image

EDIT2: I just noticed after posting this in that line of code i posted, <a href='{parse url="app=css...}' i have changed to <a href='http://gamers-revolution.co.uk/' and it seems to have also done the trick

{parse variable="ccsActive" default="" oncondition="IPS_APP_COMPONENT == 'ccs'" value="active"}<li id='nav_ccs' class='left {parse variable="ccsActive"}'><a href='http://gamers-revolution.co.uk/' title='{$this->lang->words['go_to_ccs']}'>{IPSLib::getAppTitle( 'ccs' )}</a></li>

I hope this is of some help to others.

Thanks  a lot for your help Posted Image Also, any ideas about my active users list mentioned in my first post?

Jazman

Edited by jazman, 04 January 2012 - 12:58 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users