• Hello,

    I downloaded the wordpress .tar.gz and used a ftp client, following several tutorials to ensure all was set right (config of database, server size, domain settings…).

    An “Index Of” page showed on the domain.

    After several days of tests, I deleted all files from the servers, downloaded the .zip version and installed it + tweaked a few other settings. All is now running smoothly.

    I am now trying to understand why it didn’t work, and it seems that the .tar.gz file did not include a .htaccess.
    Could this be possible?
    What are other differences between .tar.gz and .zip that would be helpful to know for future development?

    Thank you,
    Lise

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello liseslimane

    from superuser.com:
    “Cross-platform programs are sometimes distributed as .tar.gz for the Unix version and .zip for the Windows version.
    If, however, the contents are going to be the same, it would be simpler to just have one download. Windows prefers .zip because that’s the format it can handle out of the box.
    …tar and gzip are more common on Linux/Unix systems.”

    Please, every time download your WP from the common sites, like wordpress.org:
    https://wordpress.org/download/

    The WP-packages doesn’t contain the .htaccess file. It creats when you’re installing your WP.

    Hi liseslimane,

    When you install WordPress on your server or local server the .htaccess file is automatically generated.

    Thank you

    Hi liseslimane,

    Can you detail the configuration steps you took? (The first time you installed it, did you run WordPress’ automatic installer? Or did you configure wp-config and such using a text-editor?)

    In the future, you can check if your .htaccess file exists and is in the right directory (ex, if you wordpress installation is in sitename.com/wordpress, and you are trying to type sitename.com to get to your site, make sure the .htaccess file is in public_html*, as opposed to public_html/wordpress)

    The first time you tried this, did you manage to install WordPress successfully? If not, in the future you can enter sitename.com/wordpress/wp-admin/install.php to run the install script. Alternately, if you’ve already set up the installation manually, you should be able to enter sitename.com/wordpress/wp-admin to get the login screen for your site.

    If you can get into your wp-admin from there, go to Settings -> General and check that the site URL and WordPress URL are set to the right thing. Then go to Settings -> Permalinks and update your Permalinks to your preferred structure, and that should generate the .htaccess file.

    If flushing the Permalinks doesn’t work, due to the missing .htaccess file (I believe WordPress will tell you if this is the case), then create a blank .htaccess file, and then retry flushing the Permalinks. WordPress should then successfully configure the .htaccess file.

    Hope that helps, and if you have any questions about what I wrote above, please feel free to ask.

    *assuming your server uses public_html, some servers use www instead, or have another alternate setup

    Hello @liseslimane,

    .htaccess file is missing? No problem, create a new file called “.htaccess” which is usually hidden, go to settings >> click on “display hidden files”.

    Add these codes in .htaccess file:-

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Hope it helps!

    Regards,
    Rachith

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Index Of" : No .htaccess in .tar wordpress files?’ is closed to new replies.