We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44649
    • 68 Posts
    Hi,

    I'm having problems with Babel and Friendly URLS, Babel is all setup and works fine when Friendly URL's are off. When Friendly URL's are on the default context works perfectly and the correct URL is put into the navigation bar, however switching to the /DE context results in:


    The page isn't redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    In my .htaccess file I have (it's in the subfolder 'grandcity'):

    RewriteEngine On
    RewriteBase /grandcity/
    
    # The Friendly URLs part
    # redirect all requests to /de/favicon.ico and /nl/favicon.ico
    # to /favicon.ico
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(en|de)/favicon.ico$ favicon.ico [L,QSA]
       
    # redirect all requests to /de/assets* and /nl/assets* to /assets*
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(en|de)/assets(.*)$ assets$2 [L,QSA]
      
    # redirect all other requests to /de/* and /nl/*
    # to index.php and set the cultureKey parameter
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(en|de)?/?(.*)$ index.php?cultureKey=$1&q=$2 [L,QSA]
    
    


    Could this a possible problem developing with XAMPP? I am yet to try it on a live web server, but if anyone can recommend/see anything I've missed it would be most appreciated!

    Thanks
      • 44649
      • 68 Posts
      Worked it out, in the context settings for DE the 'base_url' setting has to be '/grandcity/de/' not just '/de/'

      Hope that helps someone else!
        • 47844
        • 1 Posts
        thanks natedin!! Finally my site is working laugh