We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Removed index.php and getting funky URLs - using structure and nsm htaccess generator

Development and Programming

ByteMyPixel's avatar
ByteMyPixel
41 posts
14 years ago
ByteMyPixel's avatar ByteMyPixel

I’ve removed index.php on dozens of EE sites without any problems, but this one is doing something funky…

I’m using NSM htaccess Generator, and Structure. The difference with this site in particular is that it was built and the entries were created before we tried to remove the index.php (every other time I’ve done it at the beginning stages of development). I’m not sure if that would have anything to do with it or not, but it is strange. (I didn’t build this one, am stepping in, so it’s a bit awkward trying to work this out).

It’s working on most every URL, except for sub-pages and category pages. I’m getting /? in segment_1 on all sub-pages and the the category id in segment_3.

Any ideas what might be going on here?

Funky URL result: http://mattgivenstudios.com/?/blog/C1/content-marketing

Here is how the URLs are being pulled, and getting the above result:

{exp:channel:categories channel="blog" show_empty="no"}        
<a href="http://{path=">{category_name}</a>    
{/exp:channel:categories}

I’ve usually used structures sub_nav tag for sub-navigation… could this possibly be an issue?

Another issue is that when I try to use strucuture’s sub_nav tag I get an error saying that tag cannot be processed…

Structure 2.2.5 is the version installed.

Any thoughts would be great, thanks in advance!

       
ByteMyPixel's avatar
ByteMyPixel
41 posts
14 years ago
ByteMyPixel's avatar ByteMyPixel

{page_url} also pulls in url’s with ?/ in them… I checked in channel path settings and they’are all cleared… which it was my understanding you don’t need to set a channel path when using structure as it takes care of this in structures settings. I realize this may be a structure issue so I’ll reach out to the developers of the addon as well.

       
Greg Aker's avatar
Greg Aker
6,022 posts
14 years ago
Greg Aker's avatar Greg Aker

If you have “force query strings” set to “on” in your output and debugging preferences, ExpressionEngine will toss the query string “?” in the URL.

-greg

       
ByteMyPixel's avatar
ByteMyPixel
41 posts
14 years ago
ByteMyPixel's avatar ByteMyPixel

Ahhhh yes, that removed the ugly booger 😊 Thanks Greg!!!

       
Greg Aker's avatar
Greg Aker
6,022 posts
14 years ago
Greg Aker's avatar Greg Aker

anytime :D

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.