Results 1 to 2 of 2

Thread: Frontend URL's adding GET parameters

  1. #1
    User
    Join Date
    08-07-09.
    Location
    Kent, United Kingdom
    Posts
    92

    Default Frontend URL's adding GET parameters

    Hi all,
    To add get parameters to a given URL I've been using:
    Code:
     $this->generateFrontendUrl($objPage->row(),'/operation/create');
    However this isn't working on one install of Contao, where the base url is
    http://domain/sites/root_directory/mypage.html
    Thus my module is linking to http://domain/sites/root_directory/mypa ... reate.html which returns a 404.

    Is there a better way in Contao rather than just appending traditional PHP get syntax onto the end of the url, ie after the .html.

  2. #2
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

    Default Re: Frontend URL's adding GET parameters

    Did you change "RewriteBase /" to "RewriteBase /root_directory" in your htaccess file?

    That usually is the fix for me. It's easy to forget!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •