Answers.Body: <p>do you have Permalinks 'plain' enabled (in WP Dashboard/Settings)? Or do you have custom? I don't know if that makes a difference but it relates to how URLs are constructed. I switched between plain and custom Permalinks. And in civicrm Wordpress Integration how did you configure your 'base' page?  I used the postname of my WP base page (ie, just 'civicrm') and it seems to work, civicrm event pages show.
  Does your .htaccess file have URL rewriting enabled (begins like "# BEGIN WordPress
  
  RewriteEngine On.."<br>
  In the URL for, say, an event I get "page=CiviCRM&amp;q=civicrm%2Fevent%2Finfo&amp;id=1870&amp;reset=1" where &amp;id=1870 is the registration form for an event I created.
   I am using 4.7.20 and WP 4.8 also</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-17T02:25:08.287Z
Answers.Text: And check what is the permalink for your civicrm base page (edit the page in WP)
Answers.UserDisplayName: Lesley Evensen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-19T13:29:32.290Z
Answers.Text: Adding "RewriteEngine On" block from https://codex.wordpress.org/htaccess to .htaccess fixed the problem, now the civicrm generated link works.  http://<mysite>/civicrm/?page=CiviCRM&q=civicrm/event/info&reset=1&id=7
Answers.UserDisplayName: corsair
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-17T01:41:55.053Z
Answers.LastActivityDate: 2017-06-17T01:41:55.053Z
Answers.UserDisplayName: Lesley Evensen
Body: <p>I have Civicrm 4.7.20 installed on Wordpress 4.8.</p>
  
  <p>When I create a new event or contribution the link that Civicrm creates does not work.
  What Civicrm creates as a link:
  <a href="http://[mysite]/?page=CiviCRM&amp;q=civicrm/event/register&amp;reset=1&amp;id=7" rel="nofollow noreferrer">http://[mysite]/?page=CiviCRM&amp;q=civicrm/event/register&amp;reset=1&amp;id=7</a>
  This link loads my Civicrm base page, in this case my home page.  If I change the base page to a different page then that page is loaded.</p>
  
  <p>This link works:
  <a href="http://[mysite]/?page=CiviCRM&amp;q=civicrm/event/info1&amp;reset=1&amp;id=7&amp;page_id=1811" rel="nofollow noreferrer">http://[mysite]/?page=CiviCRM&amp;q=civicrm/event/info1&amp;reset=1&amp;id=7&amp;page_id=1811</a></p>
  
  <p>Note the &amp;page_id=1811 parameter</p>
  
  <p>As long as I specify the parameter &amp;page_id=[any valid page] the link works, if I don't specify then the link loads the base page.</p>
  
  <p>I tried disabling all other plugins and nothing changed so I think it has to be a Wordpress or Civicrm setting problem.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-17T11:08:29.477Z
Comments.Text: Is WordPress installed in a sub-directory or the root directory of the site?
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-06-19T13:17:04.750Z
Comments.Text: WordPress is installed on the root directory
Comments.UserDisplayName: corsair
Tags: <links><base-page>
Title: Problem with links & base page
ThreadText: # Problem with links & base page
  
  (Asked by: username_0 on 2017-06-16)
  
  I have Civicrm 4.7.20 installed on Wordpress 4.8.
  
  When I create a new event or contribution the link that Civicrm creates does not work.
  What Civicrm creates as a link:
  <http://[mysite]/?page=CiviCRM&q=civicrm/event/register&reset=1&id=7>
  This link loads my Civicrm base page, in this case my home page. If I change the base page to a different page then that page is loaded.
  
  This link works:
  <http://[mysite]/?page=CiviCRM&q=civicrm/event/info1&reset=1&id=7&page_id=1811>
  
  Note the &page\_id=1811 parameter
  
  As long as I specify the parameter &page\_id=[any valid page] the link works, if I don't specify then the link loads the base page.
  
  I tried disabling all other plugins and nothing changed so I think it has to be a Wordpress or Civicrm setting problem.
  
  **Tags:** links, base-page
  
  > **Comments:**
  > **username_1**: Is WordPress installed in a sub-directory or the root directory of the site?  
  > **username_0**: WordPress is installed on the root directory  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-06-17. Score: 0 | Accepted answer
  
  do you have Permalinks 'plain' enabled (in WP Dashboard/Settings)? Or do you have custom? I don't know if that makes a difference but it relates to how URLs are constructed. I switched between plain and custom Permalinks. And in civicrm Wordpress Integration how did you configure your 'base' page? I used the postname of my WP base page (ie, just 'civicrm') and it seems to work, civicrm event pages show.
  Does your .htaccess file have URL rewriting enabled (begins like "# BEGIN WordPress
  RewriteEngine On.."  
  In the URL for, say, an event I get "page=CiviCRM&q=civicrm%2Fevent%2Finfo&id=1870&reset=1" where &id=1870 is the registration form for an event I created.
  I am using 4.7.20 and WP 4.8 also
  
  > **Comments:**
  > **username_2**: And check what is the permalink for your civicrm base page (edit the page in WP)  
  > **username_0**: Adding "RewriteEngine On" block from https://codex.wordpress.org/htaccess to .htaccess fixed the problem, now the civicrm generated link works.  http://<mysite>/civicrm/?page=CiviCRM&q=civicrm/event/info&reset=1&id=7  
  
  ---
  
  