Wordpress: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
No edit summary
Line 26: Line 26:
   < /Directory >
   < /Directory >
* Restart apache
* Restart apache
* If you are using qtranslate (which is the case for the openpetra-website) go on the wordpress-admin-interface to Settings -> Languages -> Advanced Settings and activate "Use Pre-Path Mode".
* Go on the wordpress-admin-interface to Settings -> Permalinks and enter as Custom Structure "/%lang%/%postname%.php"
That's it
You can find further information on the following pages:
[http://codex.wordpress.org/Using_Permalinks Using Permalinks]

Revision as of 13:44, 1 March 2011

Problem with loading web-interface

Assuming you want to run wordpress with apache/xampp on a local testserver. After setting up xampp and testing phpinfo() download wordpress and copy it into htdocs. Then you need to edit wp-config.php as instructed on the wordpress-installation-page. Next step would be executing wp-admin/install.php in your browser. Unfortunately nothing happens and the site stays blank. If this is the case try the following hints:

  • Restart your computer ;-)
  • Edit install.php (fe. add some html-testing code at the beginning of the file). By doing this you make sure to have proper access to the page. Anyway an errormessage (fe. 500)would have informed you before about wron access settings
  • Try this
  • Try this

For more information please have a look at the following links:

How to enable permalinks on wordpress

In order to display links as permalinks (/es/pagename instead of something like index.php?lang=es&page=product) the following steps are necessary:

  • Make sure that in the apache httpd.con the mod_rewrite module is activated; if necessary uncomment or add the following line:
 LoadModule rewrite_module modules/mod_rewrite.so
  • Restart apache
  • Enable AllowOverride. Go to the according section in httpd.conf and add/edit the code. At the end your code should look like the following:
 < Directory/ >
     Options FollowSymLinks
     AllowOverride All
     Order deny,allow
     Deny from all
 < /Directory >
  • Restart apache
  • If you are using qtranslate (which is the case for the openpetra-website) go on the wordpress-admin-interface to Settings -> Languages -> Advanced Settings and activate "Use Pre-Path Mode".
  • Go on the wordpress-admin-interface to Settings -> Permalinks and enter as Custom Structure "/%lang%/%postname%.php"

That's it

You can find further information on the following pages: Using Permalinks