No web.config File?
-
I have wordpress up and running, but when I try to change some of the settings, it says I need to edit my web.config file because it can’t. Although, there is no web.config file! What do I do?
I host with GoDaddy, if that is of any information.
Thanks!
Koolstr
-
it likely means your
wp-config.php
If so, then where do I place it? This is what it says:
If your web.config file were writable, we could do this automatically, but it isn’t so this is the url rewrite rule you should have in your web.config file. Click in the field and press CTRL + a to select all. Then insert this rule inside of the /<configuration>/<system.webServer>/<rewrite>/<rules> element in web.config file.
If you temporarily make your web.config file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.
Where are those tags, and where exactly do I place the code? (I’m not showing the code for obvious reasons)
ahhh… chmod your .htaccess to 666 and it should accept the rewrite rules
This is all that is in my wp-config.php file (with my details hidden with *’s, of course):
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information by
* visiting {@link https://codex.www.ads-software.com/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don’t have to use the web site, you can just copy this file
* to “wp-config.php” and fill in the values.
*
* @package WordPress
*/// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘*******’);/** MySQL database username */
define(‘DB_USER’, ‘*******’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘************’);/** MySQL hostname */
define(‘DB_HOST’, ‘*****************************************’);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.www.ads-software.com/secret-key/1.1/ www.ads-software.com secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*
* @since 2.6.0
*/
define(‘AUTH_KEY’, ‘eqD-)bCDQ^?GZBm;~=||6m~Wf/Iv`[B%~Z!(B);SG$Tk@:~JK?D4g1z:l*vo0!|D’);
define(‘SECURE_AUTH_KEY’, ‘v;9k!:Kno$;Xd*1Ut/kR1WI$J*$1!Ssh?j3ZV*HQvjhk$NF!@-rr5/YI}5u,Bi6(‘);
define(‘LOGGED_IN_KEY’, ‘xqg+}..1he4g&XnOE)X,X:JOXx_>|xKorstlPQ|<$Mw#sq@u$wW7IwmpnLut+w`k’);
define(‘NONCE_KEY’, ‘UH.5,mp<WW!4 JG+ojT5HX_.}~Jq+*F*~2Th.kWGB]eBj+>k`6(7;_Q&z*@wF/R[‘);/**#@-*/
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = ‘wp_’;/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de.mo to wp-content/languages and set WPLANG to ‘de’ to enable German
* language support.
*/
define (‘WPLANG’, ”);/* That’s all, stop editing! Happy blogging. */
/** WordPress absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);Where in this exactly am I posting the code? If you need to know, the code is:
<rule name=”wordpress” patternSyntax=”Wildcard”>
<match url=”*” />
<conditions>
<add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
</conditions>
<action type=”Rewrite” url=”index.php” />
</rule>re-read my last answer
Your last answer is a little confusing… A little too techie for me lol. Mind explaining better or in more english? Or pointing it out for me?
Sorry.
your
.htaccess
file should be in the same location as yourwp-config.php
use your host file manager or ftp client to change the file permissions to 666
https://codex.www.ads-software.com/Changing_File_Permissions#Using_an_FTP_Clientif you don’t see it
https://codex.www.ads-software.com/Changing_File_Permissions#Unhide_the_hidden_filesOh, alright.
No invisible files show on my GoDaddy hosting server….. =/
You should use an FTP program instead of the web interface to find the .htaccess file then, so that you can find the invisible files. You can download Filezilla for free (among others). Once you install that, you should be able to use the username and password for your hosting account.
I did. Even inside, with Filezilla, I can’t see it. I followed the instructions exactly, I made sure invisible files were visible. yet still, there are no invisible files on the server, and not a .htaccess file.
@koolstr
A web.config file is specific to a Windows account. This means you also will not have an .htaccess file, which is only on Linux. You can add a web.config file to your hosting account manually, or you can turn on permalinks and WordPress will add this file for you and it will be writable.How do I turn on/off permalinks? I only have a choice between permalinks.
Thanks for the great explanation, though.
Also, if I add my own web.config, what else goes in it beside for the code they tell me to put in it? Can somebody give me a sample web.config?
Bump.
Can anybody help? Read my previous post please. Thanks.
The default option is considered off. As for your question about the web.config, try this doc: https://codex.www.ads-software.com/Using_Permalinks
The document didn’t help. I don’t know what is supposed to be in the web.config file!
I tried creating a web.config file and just inserted the code they gave me. It ended up breaking my entire site, so I took it off and its working like before I put it on. Obviously, it needs all of the contents of a web.config file!! Can somebody please just post me a sample, of one from their one domain?
I even tried naming it .htaccess, and it did nothing. Right now, nothing works on my wordpress blog, except for the main page. None of it will work until I can put in this code.Also, is there a way to turn back off the permalinks? I just switch it back to Default?
Help would be great.
Thanks!
- The topic ‘No web.config File?’ is closed to new replies.