i could not find my .htaccess file

17 replies
I am currently using permalinks and i wanted to give my wordpress to its own domain.

I have looked at the instructions and they said i needed to find my .htaccess file but i could not find.Why is it so?
#file #find #htaccess
  • Profile picture of the author RayWhittaker
    What do you mean when you say you're trying to give your wordpress it's own domain? What exactly are you trying to do? Create a subdomain or an add-on domain... or something else?

    In any event, the .htaccess file is just a text file that tells the server operating system what or who is allowed to access the web folder in question. If it isn't there you can create it or copy one from another location and edit it for your site.
    {{ DiscussionBoard.errors[4619444].message }}
    • Profile picture of the author Haruki92
      Originally Posted by RayWhittaker View Post

      What do you mean when you say you're trying to give your wordpress it's own domain? What exactly are you trying to do? Create a subdomain or an add-on domain... or something else?

      In any event, the .htaccess file is just a text file that tells the server operating system what or who is allowed to access the web folder in question. If it isn't there you can create it or copy one from another location and edit it for your site.
      Initally my wordpress domain was mydomainname.com/home.Now i wanted it to make it mydomainname.com.
      {{ DiscussionBoard.errors[4619455].message }}
      • Profile picture of the author Chri5123
        Originally Posted by Haruki92 View Post

        Initally my wordpress domain was mydomainname.com/home.Now i wanted it to make it mydomainname.com.
        If you want to do this you should be able to do it without .htaccess just upload the wordpress files into your public_html folder.

        Chris
        {{ DiscussionBoard.errors[4619471].message }}
        • Profile picture of the author Haruki92
          Originally Posted by Chri5123 View Post

          If you want to do this you should be able to do it without .htaccess just upload the wordpress files into your public_html folder.

          Chris
          yup i uploaded into public_html folder and under that folder,i created another folder to drag my wordpress files.
          {{ DiscussionBoard.errors[4619493].message }}
          • Profile picture of the author Chri5123
            Originally Posted by Haruki92 View Post

            yup i uploaded into public_html folder and under that folder,i created another folder to drag my wordpress files.
            OK, all you need to do is drag your wordpress files into public_html.

            So in your local machine go into your Wordress folder and then upload all of the files to public_html - don't create another folder unless you want the wordpress installation like this:

            yourdomain.com/wordpress

            If you DON'T want the above ^

            Upload the wordpress files straight into the public_html

            Chris
            {{ DiscussionBoard.errors[4619545].message }}
            • Profile picture of the author Haruki92
              Originally Posted by Chri5123 View Post

              OK, all you need to do is drag your wordpress files into public_html.

              So in your local machine go into your Wordress folder and then upload all of the files to public_html - don't create another folder unless you want the wordpress installation like this:

              yourdomain.com/wordpress

              If you DON'T want the above ^

              Upload the wordpress files straight into the public_html

              Chris
              all the files that is inside my current theme folder right??
              {{ DiscussionBoard.errors[4619611].message }}
              • Profile picture of the author rosetrees
                Originally Posted by Haruki92 View Post

                all the files that is inside my current theme folder right??
                Don't drag anything - the paths in your database will be wrong.

                My advise is to start again. Do a fresh install of Wordpress directly onto your main domain. If you are using fantastico to install, just leave the bit that says "install in" blank.

                If you had any content - export the database from the admin area of the old site and then import it into the new site.
                {{ DiscussionBoard.errors[4619634].message }}
                • Profile picture of the author Haruki92
                  Originally Posted by rosetrees View Post

                  Don't drag anything - the paths in your database will be wrong.

                  My advise is to start again. Do a fresh install of Wordpress directly onto your main domain. If you are using fantastico to install, just leave the bit that says "install in" blank.

                  If you had any content - export the database from the admin area of the old site and then import it into the new site.
                  Sorry i don't get what you mean.How do i install the wordpress directly into my own main domain?they will want us to create a new folder in cpanel.

                  Also,"Export the database from the admin area"?What do you mean?
                  {{ DiscussionBoard.errors[4619655].message }}
                  • Profile picture of the author rosetrees
                    I guess I'm losing my touch! So I'll say it again - leave the bit that says "install in" blank to install on the main domain not on a subdomain.

                    If there is content on the old site, log into your wordpress admin area and go to tools/export. Export the database.

                    After you've installed Wordpress on the main domain, log into your wordpress admin area and go to tools/import to import the content.

                    Of course, if there is no content on the existing site, then there is no need to export it.
                    {{ DiscussionBoard.errors[4619688].message }}
                    • Profile picture of the author Haruki92
                      Originally Posted by rosetrees View Post

                      I guess I'm losing my touch! So I'll say it again - leave the bit that says "install in" blank to install on the main domain not on a subdomain.

                      If there is content on the old site, log into your wordpress admin area and go to tools/export. Export the database.

                      After you've installed Wordpress on the main domain, log into your wordpress admin area and go to tools/import to import the content.

                      Of course, if there is no content on the existing site, then there is no need to export it.
                      I have reinstalled wordpress into my main domain already but when i enter mydomainname.com, it gives me "Index of" my files.Which step have i done wrongly?
                      {{ DiscussionBoard.errors[4619782].message }}
                      • Profile picture of the author rosetrees
                        Originally Posted by Haruki92 View Post

                        I have reinstalled wordpress into my main domain already but when i enter mydomainname.com, it gives me "Index of" my files.Which step have i done wrongly?
                        It sounds as if somehow you haven't installed it directly onto the main domain.

                        Did you use fantastico to do the installation?
                        {{ DiscussionBoard.errors[4619817].message }}
                        • Profile picture of the author Haruki92
                          Originally Posted by rosetrees View Post

                          It sounds as if somehow you haven't installed it directly onto the main domain.

                          Did you use fantastico to do the installation?
                          I got it already.Thanks!
                          {{ DiscussionBoard.errors[4619927].message }}
                          • Profile picture of the author DougieMajor
                            Have you solved this issue? - .htaccess is generated on the fly in wordpress, hence the reason you won't be able to find it

                            If you still need help solving this problem let me know and I'll write a step by step guide for you.
                            {{ DiscussionBoard.errors[4620145].message }}
                            • Profile picture of the author DireStraits
                              Originally Posted by DougieMajor View Post

                              Have you solved this issue? - .htaccess is generated on the fly in wordpress, hence the reason you won't be able to find it

                              If you still need help solving this problem let me know and I'll write a step by step guide for you.
                              I do believe Wordpress can generate/regenerate/update the .htaccess file itself when necessary (certainly some available plugins do), but it sure isn't generated on-the-fly every time, to my knowledge. If that was the case, I wouldn't be able to see it inside my FTP client.

                              The problem, quite often, isn't that the .htaccess file ceases to "physically exist", but that many FTP clients, by default, don't display them nor any other files that lack an actual filename (something before the "." and the filetype extension). But this can usually be rectified by entering an FTP client's configuration menu and ticking the "show all files" or "show hidden files" setting, or whatever the equivalent is.
                              {{ DiscussionBoard.errors[4620854].message }}
  • Profile picture of the author webexpert00
    .htaccess file is created by the webmaster of the site. If you are the webmaster of your site then you need to create it by your own. It's a simple notepad file with the name .htaccess to control the access of your webpage according to your requirements from external sources.
    {{ DiscussionBoard.errors[4619453].message }}
  • Profile picture of the author Steven Miranda
    Not sure if this is what you need but that file is usually hidden my FTP software. Show hidden files.
    {{ DiscussionBoard.errors[4619708].message }}
  • If you have already bought your desire domain and have the host, you need to upload the wordpress on your host. Just download the wordpress from their official web page. My advice will be to make your site on localhost and then upload it to live host.
    And about .htaccess file it is located straight in wordpress folder.
    {{ DiscussionBoard.errors[4619732].message }}

Trending Topics