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.

Weird URL issue adding /?/

July 02, 2011 2:39am

Subscribe [4]
  • #1 / Jul 02, 2011 2:39am

    J. Hull

    132 posts

    This is bizarre, not even sure why it is happening, but a link I have setup as <a href=”/analysis”> shows up in the URL address bar as “http://domainname/analysis/?/analysis”

    this is so random, that I can’t even begin to figure out why it is showing up.  Would anyone have an idea about this?

  • #2 / Jul 03, 2011 4:05pm

    Rob Allen

    3114 posts

    Quite possibly it’s your server that’s forcing them

    See “Query strings” at http://ellislab.com/expressionengine/user-guide/general/urls.html and http://expressionengine.com/wiki/Workaround_for_Forced_Query_Strings/

  • #3 / Jul 05, 2011 8:29am

    Sue Crocker

    26054 posts

    Thanks for the assist, Rob.

    J. Hull, are you attempting to remove index.php via .htaccess?

    I agree with Rob - let’s see if that’s what the issue is..

  • #4 / Jul 05, 2011 4:52pm

    J. Hull

    132 posts

    Yes I am using .htaccess and it works brilliantly on every other template group, save for this one. The thing is, everything works, all the templates show up, site works as expected, just that one template group (analysis)—and only when there aren’t any segments following it, does it add the “?/analysis” to the URL above. If I go to “/analysis/article” it doesn’t modify the URL string at top.

    I’m developing locally with MAMP so perhaps it is something there, maybe it doesn’t like the word analysis? I don’t know.

  • #5 / Jul 05, 2011 5:25pm

    Sue Crocker

    26054 posts

    Hi, J. Hull.

    What happens if you try something like this:

    See screen shot

  • #6 / Jul 05, 2011 5:36pm

    J. Hull

    132 posts

    Same thing pops up.

    Even if I simply enter “http://domainname.com/analysis” directly into the browser, it comes back with “http://domainname.com/analysis/?/analysis”

    If, however, I add a trailing slash like this “http://domainname.com/analysis/” it remains like that.

    Weird thing is, I have many different template groups that don’t behave like this.

  • #7 / Jul 08, 2011 5:42pm

    Sue Crocker

    26054 posts

    What do you have in your .htaccess file? On MAMP, you shouldn’t have to force query strings.

  • #8 / Jul 08, 2011 6:15pm

    J. Hull

    132 posts

    Here’s the whole thing:

    AddType video/ogg .ogv
    AddType video/mp4 .mp4
    AddType audio/m4a .m4a
    AddType audio/ogg .ogg
    
    RewriteEngine On
    #
    
    ErrorDocument 404 /index.php/include/404
    
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ /$1 [R=301,L]
    
    RewriteCond $1 ^(member|search|main|theory|analysis|community|support|miniplayer|monthly-tips|dictionary|storyform|ez-storyform|P[0-9]{2,8}) [NC]
    RewriteRule ^(.*)$ /index.php?/$1 [L]
  • #9 / Jul 12, 2011 6:00pm

    Brandon Jones

    5500 posts

    J. Hull,

    Are you using the Pages module, Structure, etc? Try disabling extensions. Also, what’s on the analysis/index template itself? If you temporarily make it blank, do you still see that behavior when going to the URL directly in the browser?

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

ExpressionEngine News!

#eecms, #events, #releases