In default Joomla 1.5 installation, there is a file named htaccess.txt. This file will be used if we use Joomla SEO, that is option Use Apache mod_rewrite. Before it can be used, this file should be renamed to .htaccess. In Linux OS, this case is not a big problem, because it allows creation this kind of file (file name is started with “dot” character). For Windows user this case is a problem, because Windows doesn’t allow creation this kind of file. If we force it, then a warning is appear like shown below:

    Error while renaming htaccess.txt to .htaccess

Error while renaming htaccess.txt to .htaccess

In order to rename htaccess.txt to .htaccess, we could do it through command prompt. Syntax:

ren [htaccess.txt directory]\htaccess.txt .htaccess

Example:

ren DaGu\htdocs\joomla15\htaccess.txt .htaccess

That’s it!

Related posts:

  1. Joomla! 1.5 SEO
  2. Joomla! Won "Best CMS Award" (Again)

Tags: , ,

24 Responses to “Rename htaccess.txt to be .htaccess in Windows”

  1. Even after I rename it I am having a problem that my links were not working

  2. @maruthy
    Are your apache mod_rewrite active? If not, you need to activate it first. Please check my article about activate mod_rewrite in apache

  3. Just stumbled here from another danigunawan.com page…

    Other than the rename from dos prompt which I use regularly… Try your FTP client.

    Sometimes this is quicker if its only an Alt-tab away and already in the right directory (i.e. when mirroring/migrating/yada from remote to localhost)

    Probbly the FTP client use the cmd.exe anyway so this actually -is- the same

  4. Thank you!..

  5. Tks for u help, i aprecciate this :)

  6. Thanks for the help, I’ve bookmarked this.

    On a side note, I’d suggest you type the test from the images somewhere in the page (perhaps below) so that people searching for that text find you page, ie : You must type a file name. There I just did for you ! :)

  7. @davetanguay , I have installed my Joomla through Xampp.

    My site folder addrees is

    C:\xampp\htdocs\MarketPlace

    and when i rename my file in command prompt as
    c:\ren c:\xampp\MarketPlace\htdocs\htaccess.txt .htaccess
    and when i open my site on every menu click its showing me a page as
    http://localhost/xampp/
    Congratulations u have installed Xampp.

    What happened? Am in wrong in renaming the file. i have also make all the settings in Global Confi as yes for SEO.

  8. I posted this message for every one who hv succesfully done this. Pls help

  9. Thanks a lot!!!!

  10. i can;t rename plz upload .httacces in zip

  11. thanks…finally I find how to do it….

  12. Thanx more!
    I have never heard it.

  13. This article is very useful, I have been looking for, thank you.Very good!

  14. Dylan, so simple and yet effective! Thank you!

  15. Thank for your info,,, :)

  16. ru, correct path should read:

    c:\ren c:\xampp\htdocs\MarketPlace\htaccess.txt .htaccess

    Worked for me!

  17. Reply:
    ##################################################
    #ru
    #April 15th, 2010 at 10:59 pm
    #I posted this message for every one who hv succesfully done this. Pls #help
    ###################################################

    This is probably because you didn’t change the “RewriteBase /” value inside the .htaccess file. try open .htaccess, find “RewriteBase /”, and change it to “RewriteBase /(you site folder)”. for example: RewriteBase /joomla

  18. thanks a lot for the post. it is really helpful. but i want to know more about joomla 1.6 SEO for my site.

  19. Thanks for your wrote. Its very helpful.

  20. Thanks! It works.

  21. I suggest a very simple way to convert .htaccess.txt into htaccess file

    I) While Save the notepad with command .htaccess you have two option to save if you use window operating system. First save as .txt file and second is save as all file. Choose second option SAVE AS ALL FILE.

  22. This will be a terrific website, would you be interested in doing an interview about just how you designed it? If so e-mail me!

  23. Hi, i think that i saw you visited my site so i came to “return the favor”.
    I’m trying to find things to improve my web site!I suppose its ok to use a few of your ideas!!

Trackbacks/Pingbacks

  1. Joomla! 1.5 SEO | It's About Dani Gunawan

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>