Why exactly does the URL structure appear this way?
http://mtharmony.org.s30200.gridserver.com/index.php/site/visitors/
The part I am referring to is the part after the “.com”.
Is there a way to control this?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 21, 2007 11:56pm
Subscribe [5]#1 / Nov 21, 2007 11:56pm
Why exactly does the URL structure appear this way?
http://mtharmony.org.s30200.gridserver.com/index.php/site/visitors/
The part I am referring to is the part after the “.com”.
Is there a way to control this?
#2 / Nov 22, 2007 12:49am
Greetings, venti - index.php is the gateway through which the server knows that ExpressionEngine is being called; it can be removed, on some servers (and the removal is not officially supported) by using one of the methods in this wiki entry. Beyond that, please read Understanding URLs and the Importance of Semantics
#3 / Nov 22, 2007 12:55am
Thank you very much. I’ll look over the links.
Do you know if by chance Media Temple’s Grid Service supports the removal?
And do you know if this URL structure effects Google Analytics tracking?
Thank you again.
Bryan
#4 / Nov 22, 2007 12:56am
It does not effect Google Analytics; I’ve never used MT’s Grid Service, but I believe some people are using that method on those servers. If they support .htaccess mod_rewrites you should be good to go.
#5 / Nov 22, 2007 10:52am
hi ventistudios,
yes, mediatemple supports the index.php removal with .htaccess rewrite mode. This one is tested and works:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]just paste these 4 lines into your .htaccess file in the root of your webserver
#6 / Nov 22, 2007 9:52pm
Greetings, venti - index.php is the gateway through which the server knows that ExpressionEngine is being called; it can be removed, on some servers (and the removal is not officially supported) by using one of the methods in this wiki entry. Beyond that, please read Understanding URLs and the Importance of Semantics
Lisa, I have seen you mention this “is not supported” a few times. Is this because you have seen problems doing this, or just because it wasn’t intended that way and you don’t want to have to support different server configurations to make it happen?
Any plans to make it an option in the future? It would be a great feature for people who have already established links, or prefer the standardized look (and considerably easier explaining the url verbally to our clients) of it.
#7 / Nov 25, 2007 4:35pm
Hi Saxi,
Its not officially supported because its not part of EE’s code. As you can see by browsing the forums we often help with this. Its unlikely that this feature will ever be included directly in EE due to the vast variety of sever configurations and setups.
#8 / Nov 25, 2007 5:52pm
Is the main reason because of the vast amount of setups and the fact its configuration always depends on outside influences, or are their particular issues we might run into using it, I am very interested in doing this as I am not a fan of the /index.php/path idea, but I don’t want to introduce problems. Although I see a lot of EE installations using it so it sounds safe.
#9 / Nov 25, 2007 8:07pm
Is the main reason because of the vast amount of setups and the fact its configuration always depends on outside influences, or are their particular issues we might run into using it, I am very interested in doing this as I am not a fan of the /index.php/path idea, but I don’t want to introduce problems. Although I see a lot of EE installations using it so it sounds safe.
You’re correct on both counts though the majority of people using the .htaccess method don’t experience issues. Just be careful and if you run into problems post and you’ll very likely get good feedback.