Wordpress: Where’s my .htaccess ?
Where’s my .htaccess ?
I’ve just upgraded my WP blog into the new version, and as before, I lost my htaccess file. Well, I need this to retain my permalink structure, otherwise all my old posts would be missing. Luckily WP online help is really helpful and I use it to solve my problem.
If you do not already have a .htaccess file, create one. If you have shell or ssh access to the server, a simple touch .htaccess command will create the file. If you are using FTP to transfer files, create a file on your local computer, call it 1.htaccess, upload it to the root of your WordPress folder, and then rename it to .htaccess.
But before that, edit the 1.htaccess file with below command. You can edit the .htaccess file by FTP, shell, or (possibly) your host’s control panel.
Just add this:
RewriteEngine On
RewriteBase /allblog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /allblog/index.php [L]
Notes: replace ‘/allblog/’ with your blog name.
Voila! It works..!

