dyr Posted February 29, 2012 Share Posted February 29, 2012 Currently using xampp to figure out how to code, then when i get a better idea of PHP I'll go to an actual host server. My question is, is there an .htaccess file already on XAMPP? I tried searching and couldn't find one to edit. If there isn't one and I have to create my own, suggestions on what I should add and how to go about it? Anything is really appreciated, I'm an extreme newb. ^^ Cheers, Dyr Quote Link to comment https://forums.phpfreaks.com/topic/257955-htaccess-on-xampp/ Share on other sites More sharing options...
trq Posted February 29, 2012 Share Posted February 29, 2012 If you don't know what to add to your .htaccess file then you don't yet need one. Quote Link to comment https://forums.phpfreaks.com/topic/257955-htaccess-on-xampp/#findComment-1322166 Share on other sites More sharing options...
AyKay47 Posted February 29, 2012 Share Posted February 29, 2012 Simply create a .htaccess files in the htdocs folder (doc root for xampp). However before you do this, make sure that this directive: #LoadModule rewrite_module modules/mod_rewrite.so in the servers http.conf file (normally found in \apache\conf) is not commented so the module is enabled. Quote Link to comment https://forums.phpfreaks.com/topic/257955-htaccess-on-xampp/#findComment-1322167 Share on other sites More sharing options...
dyr Posted March 1, 2012 Author Share Posted March 1, 2012 Thorpe, as of now I'd like to add my own custom 404 errors and know how to roughly go about this via .htaccess AyKay47, I found httpd.conf file, which lists the same directive, however the load module does not have a # in front like you listed, will it still work? There is a # on the directive below it: LoadModule rewrite_module modules/mod_rewrite.so #LoadModule apreq_module modules/mod_apreq2.so Thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/257955-htaccess-on-xampp/#findComment-1322545 Share on other sites More sharing options...
trq Posted March 1, 2012 Share Posted March 1, 2012 The # marks the line as a comment. So you'll no # means the line is actually processed. Quote Link to comment https://forums.phpfreaks.com/topic/257955-htaccess-on-xampp/#findComment-1322552 Share on other sites More sharing options...
dyr Posted March 1, 2012 Author Share Posted March 1, 2012 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/257955-htaccess-on-xampp/#findComment-1322555 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.