We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3647
    • 177 Posts
    I’m sure this is probably a dumb question, but can’t find any reference to it.

    When creating an alias and inputting ’directory/sub-directory’ the / gets taken out when saved
    Should I be inputting it in some other way to stop that?

    Thanks
      • 7231
      • 4,205 Posts
      I don’t think that you can use a / in the alias since that changes what the url means to the server. The alias should refer to only the current document and not include any directory information, the directory data is handled by your site’s FURL settings. You cant use any special characters in an alias name.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 3647
        • 177 Posts
        Ah, thanks - so here was the problem I was trying to solve which I’d love you help with

        Just launched a new site and the old one has Google links like:

        domain.com/cheap-widgets/widgets

        And I wanted to use this as an alias so I didn’t lose the links

        If I can’t use the ’/’ in an alias, how do I invent or create the ’cheap-widgets’ subdomain?
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Have a branch in your document tree with the parent named cheap-widgets, and all your cheap widgets pages under it. And turn on Friendly alias paths in the Configuration tool. Then the URL will be created with the full path.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 3647
            • 177 Posts
            Excellent, thanks Susan!