Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem setting up mod_rewrite/permalinks #22

Open
lapidus opened this issue Apr 19, 2013 · 1 comment
Open

Problem setting up mod_rewrite/permalinks #22

lapidus opened this issue Apr 19, 2013 · 1 comment

Comments

@lapidus
Copy link

lapidus commented Apr 19, 2013

Hi,
I am having trouble configuring "pretty URLs" with WordPress skeleton. Any advice would be much appreciated.

This is the link I am trying to access:
http://projects/WordPress-Skeleton/wp/hello-world/

I am a bit confused, shouldn't it really be without the "wp" part?
http://projects/WordPress-Skeleton/hello-world/

Database:

  • Where should HOME and SITE_URL point?

.htaccess:

  • Should there be 1 in the Skeleton folder and 1 in the WP folder?
  • What should it/they contain?

wp-config.php / local-config:

  • Anything I need to modify here?
@ddebernardy
Copy link

home url should point to /
site url should point to /wp/

The simplest is to add two defines in your local config.

Ideally, you'd also play around with other urls, cookies and such.

define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp');
define('WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/content');

#define('CUSTOM_USER_TABLE', 'users');
#define('CUSTOM_USER_META_TABLE', 'usermeta');

define('WP_CONTENT_DIR', '/path/to/content');

define('COOKIEHASH', 'defaults_to_md5_site_url');
define('USER_COOKIE', 'wpuser_' . COOKIEHASH);
define('PASS_COOKIE', 'wppass_' . COOKIEHASH);
define('AUTH_COOKIE', 'wp_' . COOKIEHASH);
define('SECURE_AUTH_COOKIE', 'wp_sec_' . COOKIEHASH);
define('LOGGED_IN_COOKIE', 'wp_logged_in_' . COOKIEHASH);
define('TEST_COOKIE', 'wp_test_cookie');
define('COOKIEPATH', '/');
define('SITECOOKIEPATH', '/wp');
#define('ADMIN_COOKIE_PATH', '/wp'); # /wp/wp-admin used to result in problems; maybe they're fixed
define('PLUGINS_COOKIE_PATH', '/content/plugins');


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants