Removing parts of the URL?

Post

Posted
Rating:
#9798 (In Topic #3439)
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Is there an easy way to strip say "catalogues" and "galleries" from the actual address in v10? Shorter URL's are always nicer and not sure if these are required? I know v11 has some extended rewrite functionality that could likely do this.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#9801
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
Can you give me a couple examples of URLs you'd want stripped (minus the domain name if you want to keep your site private)?

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top

Post

Posted
Rating:
#9802
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Well I am sharing Gallery video links to Facebook so I'd like to shorten the URL in some way. I am using Youtube ID's in the URL, so ideally I'd like to recreate something like Youtube does (ie, domain/music/id) but at the very least domain/music/video/ID

I am not using the root gallery though it exists and having that in the URL along with video/ seems overkill. I tried some .htaccess but I think that also needs to be reflected deeper in the system as it did nothing.

Example link: Likho > The Beerholder – Mediafeeder
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#9803
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
Yeah, that would be correct. While you can define new rules in the .htaccess file, even if they work if typed in manually in your browser or used as links, Composr will still use its own URL schemes depending on what you selected in configuration. It would not be an easy change as it's frequently used in core functions.

So for example if you managed to get .htaccess to direct domain/music/video/ID correctly, Composr is still going to change it after the fact to conform with its own scheme (or during standard navigation through the site).

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top

Post

Posted
Rating:
#9804
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Fair enough, will cope. Wonder if I could do it with redirects in Admin CP with 1 rule rather than 1 for each? Is that possible?
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#9805
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
Probably not in v10. The v10 redirection system is very basic and only supports zone:page redirects

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Patrick Schmalstig)
#9806
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Okay, thank you ;)
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top