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.

Does anyone know how to remove the "?" from my url"

June 17, 2013 9:56pm

Subscribe [3]
  • #1 / Jun 17, 2013 9:56pm

    ClubZion

    30 posts

    My site is hosted on Godaddy.

    I have removed the index.php from my url but I am still left with this:

    kldkids.org/?/about/generationAtRisk/

    I would like a clean url to look like this:

    kldkids.org/about/generationAtRisk/

    I have to have “Forced Query Strings” set to “yes” this is what is creating the “?”

    Here is my .htaccess file:

    <IfModule mod_rewrite.c>

    # Enable Rewrite Engine
    #———————————————
    RewriteEngine On
    RewriteBase /

    # Redirect index.php Requests
    #———————————————
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{THE_REQUEST} !/system/.*
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

    # Standard ExpressionEngine Rewrite
    #———————————————
    RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    </IfModule>

    Any ideas?

    Thank you so much! G

  • #2 / Jun 18, 2013 1:09am

    PravinS

    123 posts

  • #3 / Jun 18, 2013 8:13am

    ClubZion

    30 posts

    Thanks for your response, but I’m still not getting the clean URL I would like.

    When I do the above, the “?” is still there. Then I turn off “Force Query Strings”. At this point the URL looks great, no “?”, however when a link is clicked I go right tho my system/index page, complete with the log-in for my control panel.

    To be clear, my URL looks like this:

    kldkids.org/about/generationAtRisk/

    But the page shown is my log-in to my control panel.

    Please note that I am using EE 1.6.7.

    Thanks, G

  • #4 / Jun 18, 2013 9:38pm

    ClubZion

    30 posts

    I’m not sure I understand…. Why are you referring me to a codeigniter doc? I see the section describing how to remove the index.php. Isn’t only for use in codeigniter? I tried it in my .htaccess file but it did not work.

    Can anyone else help me out? I’m really stuck here….

  • #5 / Jun 24, 2013 11:26am

    unipaper

    1 posts

    hi
    im iranian and english is bed im sorry

    my web site دانلود مقاله
    When the address of the site Gtmetrix to optimize and reduce the speed of my site
    Unfortunately, some addresses marked by the header template? Appear
    How can I remove these marks
    Thank you so much

  • #6 / Jun 24, 2013 8:57pm

    wildrock

    262 posts

    Club Zion, unfortunately, there are many different ways to get rid of the index.php? query string in EE 1.x (and you’re running 1.6.4, not 1.6.7—I was redirected to your login page with the link you put up).

    Download the EE 1.x docs, and take a look at their method. Getting your .htaccess just right can involve getting just the right mix of variables to get it working. EL used to maintain a Wiki site with more info, but they nuked it. You still can access a version from archive.org:

    http://web.archive.org/web/20111223071458/http://expressionengine.com/wiki/remove_index.php_from_urls

    A lot of useful advice there.

    -jim

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

ExpressionEngine News!

#eecms, #events, #releases