Viewing 6 replies - 1 through 6 (of 6 total)
  • if you are not using permalinks its quite possible you don’t have an .htaccess file in your WordPress installation folder.

    In any event make sure your FTP program is set to display hidden files (those that start with a . filename.

    create an empty file .abc on your computer and upload it into a folder on the webserver. if you see it, your FTP is configured to display hidden files. if not, find the setting to turn that feature on, so you will know if you have an .htaccess file.

    In terms of your FTP program, the one you are using hasn’t been updated since 2002. Many WP people use open source FileZilla – https://codex.www.ads-software.com/Using_FileZilla

    I was also trying to move my WordPress files. I followed the directions found at https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory. I did not have a .htaccess file. (I can view hidden files with my FTP program.)

    My goal was to have a subdirectory called wordpress for the wordpress files ((https://example.com/wordpress/) and a subdirectory called dev where I’d put my pages, blog, etc (https://example.com/dev/).

    I followed the directions (omitting the .htaccess part). I got to the new admin panel just fine (https://example.com/wordpress/wp-admin/). However, “view site” took me to an empty page at https://example.com/dev/. My site could be viewed at https://example.com/wordpress/.

    I tried removing the index.php file from the wordpress folder. This did not work. I copied it back in from the dev folder, and now I can’t view my site at either location.

    Perhaps what I was trying to achieve is not possible — perhaps I can only have a subdirectory of wordpress beneath the location of my site, in which case I should have put wordpress here” https://example.com/dev/wordpress — ??

    In any case, how do I fix what I’ve done here?

    Thank you.

    @janecraft

    My goal was to have a subdirectory called wordpress for the wordpress files ((https://example.com/wordpress/) and a subdirectory called dev where I’d put my pages, blog, etc (https://example.com/dev/).

    You can not have two subdirectories. It doesn’t work that way. Since its working in /wordpress/, put your /dev/ files back in the /wordpress/ tree, in their original relative sub-folder locations.
    WP root files in /wordpress/ and within that
    /wp-content/
    /wp-admin/
    /wp-includes/

    If that gets it working, fine. If not, you can add two lines to wp-config.php that override the site location info that’s stored in the database – the equivalent of what you did to give WP its own directory. Point them to the actual locations – you can keep the modified index.php in the site root folder if you so choose

    define('WP_SITEURL', 'https://example.com/wordpress');
    define('WP_HOME', 'https://example.com/wordpress');

    Thank you for looking at my problem. I’m back up and running with the wordpress address and the blog address the same at https://example.com/dev/. I think I misunderstood the point of having different WP and blog addresses. At this point I think I’ll just leave everything where it is while I learn how to get started (yes, I’m new). Thanks again.

    I’m new to wordpress and am trying to set it up so that it will act as the website for my domain. I am also unable to find the .htaccess file although I can see other hidden files. I tried configuring my site so that the blog would be visible at https://example.com without moving files (other than the index.php) from https://example.com/wordpress.

    I tried following the instruction to move directories and ended up having to reinstall. What should the .htaccess file contain?

    thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘where is my .htaccess file?’ is closed to new replies.