ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

?URL= redirects not working

June 19, 2009 6:37pm

Subscribe [4]
  • #1 / Jun 19, 2009 6:37pm

    medic119

    52 posts

    I have been adjusting my .htaccess to redirect old templates to new templates, remove index.php, etc.  I have successfully managed to do everything I needed after researching, googling, and asking here. 

    Well, all except on thing:
    All the EE redirects don’t function.  The index.php that should be in here:
    http://www.ffpblog.com/index.php/?URL=http://www.ffpblog.com/system/401/ has been removed making these redirects not function when produced.  They basically reload the index page with the entire URL string in the address bar.  Inserting the index.php/ into the right spot makes the redirect page come up with the proper link (but not auto forward). I am assuming theu require the index.php to be parsed properly

    I tried several variations on the theme of adding a line to the css fix below without success. Mostly it just returns “invalid uri” without adding the index.php string.

    Anyone know how to fix this little niggle so everything is finally back to proper working order?

    #Fixes CSS //////////
    RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC,OR]
    RewriteCond %{QUERY_STRING} ^(URL=.*)$ [NC]
    RewriteRule ^(.*)$ /index.php?/%1 [L]
  • #2 / Jun 20, 2009 3:13am

    mayest

    293 posts

    If you go into Admin ›  System Preferences ›  General Configuration, what does it say for “Name of your site’s index page”? Since you have removed index.php via .htaccess that should be empty. If it says index.php then I think that is the problem.

  • #3 / Jun 20, 2009 6:50am

    medic119

    52 posts

    The index.php has been removed.  All the other URLS are formatting correctly, its just the ?URL= redirect that is not working.  The URL is formatted http://www.ffpblog.com/?URL=http://www.ffpblog.com/system/401/ but it looks like EE requires http://www.ffpblog.com/index.php/?URL=http://www.ffpblog.com/system/401/ for the redirection to work.


    My .htaccess code above doesn’t seem to be working to replace the necessary index.php.

  • #4 / Nov 25, 2009 8:46am

    Michael C. (KKCJ)

    100 posts

    I’m having the exact same problem (?URL redirects not working; index.php removed via .htaccess). I’m basically posting here both to bump this as well as get notified of possible fixes. 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases