2

I have a url like this www.example.com/home/ and I cannot get rid of the home folder from the URL. The best I can do results in which causes the page to crash.

I've been working with the htaccess file and tried numerous variations. Seems like it should be a simple fix but I'm having no luck.

I'm open to non-htaccess based solutions.

You can view a copy of the htaccess at http://www.spikewebdesign.com.au/htaccess-example.html

Thank you.

  • Can you clarify what you mean? Do you have an ExpressionEngine install in a sub-folder to your web root? Or is EE in a web root, but you can't get the .htaccess file to properly remove index.php? Can you post your .htaccess file... I'm pretty sure I know what your problem is... – jrothafer Aug 27 '15 at 3:26
  • The install is in the web root. I have edited my post to include the htaccess code most of which I didn't write. The main goals were: - ensure the website always redirect to www - when the above redirect occurs, remove the /index.php?/ which appears in the query string - remove /home/ when it appears in the home page URL – benny05 Aug 27 '15 at 4:03
  • I'm not seeing your htaccess code in your question... could you make sure you saved the edit? – jrothafer Aug 27 '15 at 4:09
  • Sorry, for some reason stack exhange is throwing an error when I add it. Says I don't have enough points to put in links despite no links being added. I've added a link to the code? This is not the website using the code though. – benny05 Aug 27 '15 at 4:11
  • It might be easier if you either change the file to a .txt extension or add <pre><code> around your content so it retains lines and wrapping. Having said that have you gone to Design > Template Manager > Home > Edit Group and checked "Make the index template in this group your site's home page?" This will make the index template the site homepage. – Justin Long Aug 27 '15 at 11:08
1

OOOOk... so did you try setting a default template group? If you set your default template group to "Home", the index template in their will be resolved at www.example.com as well as www.example.com/home.

| improve this answer | |
  • The default template group can be left out, yes. You can even access templates in that group, so www.example.com/foo would really load www.example.com/home/foo (provided that you did remove index.php from the URL). – Ingmar Dec 15 '15 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.