jo_inge_arnes
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Database name added to new site URLandrea_r: Ok. Thanks. I see that you answered my question before I got time to post my last comment. I’ll try to remove the last line and see what happens. My guess is that the lines were added by Dreamhost’s automatic installer, as you said.
Forum: Networking WordPress
In reply to: Database name added to new site URLhuh, How did that base get in there?I have no idea! 🙂
I’m testing WordPress 3.0 multisite on a Dreamhost PS (private server), because I’ve been asked to take over and redesign a site from scratch. I used the One-Click Install to install WordPress. I then made it multisite, as described on the WordPress-site. I added
define ('WPLANG', 'nb_NO');before I logged in. When I logged in, I could use the “automatic upgrade” feature to get the norwegian version of WP 3.0.But, I think that the last part after
/* Stop editing */was already there when I first looked at the file. I noticed it, because it didn’t say exactly the same as the WordPress documentation said. It’s supposed to say:/* That's all, stop editing! Happy blogging. */:Could it be that Dreamhost’s One Click Install is using a custom file, where they for some reason have added the last lines (with $base = DB_NAME)?
Hmmm…
Forum: Networking WordPress
In reply to: htaccess, custom mod_rewrite, and weird URL construction issue(I also have Dreamhost PS, btw)
Forum: Networking WordPress
In reply to: htaccess, custom mod_rewrite, and weird URL construction issueThe database name in the URL is the same as I decribed here:
http://ww.wp.xz.cn/support/topic/419042
The mymythos_orgsidian-part of your URL is the database name. It’s supposed to be a slash, but the wp-config.php has a line at the end of the file that sets the variable $base to DB_NAME, thus causing new sites to be given a wrong base path. Result: Weird URLs
Forum: Networking WordPress
In reply to: Database name added to new site URLI found it! It’s the wp-config.php. I figured out that you meant wp-config.php, not .htaccess.
First it says:
$base = '/';But then it says:
/* Stop editing */ $server = DB_HOST; $loginsql = DB_USER; $passsql = DB_PASSWORD; $base = DB_NAME;Notice the last line. It sets $base to DB_NAME.
Forum: Networking WordPress
In reply to: Database name added to new site URLOk. So it’s probably a configuration issue. This is what the .htaccess looks like:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]Since there wasn’t any .htaccess-file in the directory, I created a new file and copy/pasted the text into the .htaccess-file from the WordPress-message telling me to do so.
Something is probably missing in the file?