johnyswp
Member
Posted 1 year ago #
I'm a novice wordpress user who has downloaded and put up mutlisites. I was able to use Filezilla to access the wp config file to add in the necessary code, but then it says to paste the following code into the .htc access file:
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]
I've seen this before on the forums but I can't figure out where the file is. I check under the wordpress directory but it definitely isn't there. Any help would be greatly appreciated.
Thanks!
johnyswp
Member
Posted 1 year ago #
*correction htaccess file
It should be in the same folder as your wp-config.php file.
Now, it's a HIDDEN file, so you may need to turn on 'show hidden files' in your FTP app.
johnyswp
Member
Posted 1 year ago #
Thanks Ipstenu. I did that on my FTP and refreshed but it still didn't come up with the file. Is there anyway I could just make it? and if so, what would I name it with the text editor. Just '.htaccess' ?
johnyswp
Member
Posted 1 year ago #
Is it possible that I don't need an .htaccess file if I have hosting through dreamhost.com and am not hosting on a server of my own?
You only need it if you want pretty permalinks.
Correction: an htaccess is required for multisite. ;) Either setup.
johnyswp
Member
Posted 1 year ago #
Okay, so I added a file called ".htaccess" to my wordpress directory and copied and pasted the code given in my dashboard into the file. Now the problem I have is that I can't seem to be able to make new sites or pages. I add a page or create a new site and the email will even be sent to the new administrator but no links will work and typing the address into the browser bar does not work either.
Any suggestions? And thanks again for the help!
link to your site please. :)
Also: subdomains or subfolders? What host?
Oh, I was so all over the forums last night, I forgot I was in multisite. Yes, you must have one for multisite.
johnyswp
Member
Posted 1 year ago #
Ah, okay. It seems that adding the .htaccess file just works as long as my host fixed some stuff (resetting DNS etc.?) that they said was an error on their side. Also, had to reset the directory naming for new pages for some reason.
Thanks for the help!
Oh, that's not uncommon :) Sites have to turn on settings for .htaccess to work! Glad they fixed it.