We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6347
    • 1 Posts
    I’ve got a question about rewriting urls.

    At the moment i’ve enabled friendly urls with "use friendly alias paths" enabled.
    So my urls look like
    www.domainname.com/folder/page1
    www.domainname.com/folder/page2
    www.domainname.com/folder/page3

    Problem is, i have around 400 pages, growing every day and i want to organise them by disabling the usage of friendly alias paths
    So my urls would look like:
    www.domainname.com/page1
    www.domainname.com/page2
    www.domainname.com/page3

    I can simply check disabled in my modx configuration, but google and other sites linking to my site will give "page not found" errors when a user clicks on a link. (because /folder/ is removed)

    Is there a simpel way to make a 301 rewrite for this in my .htaccess file which takes you automatic to the right document?
    Or is there any other way to do so?

    Cheers!