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

how do I get rid of index.php in link to the forums?

How Do I?

macgeek's avatar
macgeek
2 posts
5 years ago
macgeek's avatar macgeek

MYSITE/cms/index.php/forums/

  1. is the current link… is their a way to have it go to MYSITE.com/cms/forum

  2. Also how do I get a link to the forum URL from the main page? not sure how to make that happen.

any ideas? thanks.

       
templateee's avatar
templateee
10 posts
5 years ago
templateee's avatar templateee

Have you used the .htaccess to remove index.php from the url?

https://docs.expressionengine.com/latest/installation/best-practices.html#removing-indexphp-from-your-urls

(not sure if it’s the same for forums, though)

for a link once you have your forum URL, you could add:

<a href="http://{path=forum}">Forums</a>

where you want the link to display

https://docs.expressionengine.com/latest/templates/globals/path.html#path-variables

(edit: for some reason ‘http://’ is being added to my code snippet, but don’t put that in if you use {path=""} )

(editedit: ok, there is an issue when adding expressionengine code with markdown, the example link will need some tweaking to actually work - link provided to examples)

       

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.