We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3831
    • 13 Posts
    i installed Revolution 2.2.2 .. the file in my root directory is ht.access ... i am a newbee .. plz excuse my english .. i am unable to rename the file ht.access to .htaccess .. th reason to change the name is to make the friendly urls .. whn i go to my file manager of my host .. the file seems to be non editable .. please help me.

    This question has been answered by multiple community members. See the first response.

    [ed. note: boneysin last edited this post 14 years, 4 months ago.]
      • 19369
      • 1,098 Posts
      Have you tried to change it in your local machine and then upload it online?
        • 1343 ☆ A M B ☆
        • 2,213 Posts
        You should also be able to rename the file via ftp/sftp.
          Patrick | Server Wrangler
          About Me: Website | Tweets |  MODX Hosting
          • 3831
          • 13 Posts
          i am unable to rename it from my local machine too .. i m on windows 7 and it asks for a file name ... did nt try from ftp/sftp ..wil do it in 2 hrs .. thanks a lot fr ur assistance amigos
            • 19369
            • 1,098 Posts
            Open the file with notepad and go to "file > save as", and use as a name: ".htaccess"
              • 3749
              • 24,544 Posts
              Good tip, but I'd recommend Wordpad rather than Notepad. Some versions of Notepad can mess with the EOL markers.


              ------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using.
              MODX info for everyone: http://bobsguides.com/modx.html
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 3831
                • 13 Posts
                hi .. thanks a lot for the reply .. i am able to upload teh .htaccess file now ..

                here is my file and the changes tht i did .. but still its not reflecting ..
                
                RewriteEngine On
                RewriteBase /
                
                # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
                #RewriteCond %{HTTP_HOST} .
                #RewriteCond %{HTTP_HOST} !^www.mysite\.com [NC]
                #RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
                #
                # or for the opposite domain.com -> www.domain.com use the following
                # DO NOT USE BOTH
                #
                #RewriteCond %{HTTP_HOST} .
                #RewriteCond %{HTTP_HOST} !^www\.www.mysite\.com [NC]
                #RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]
                
                
                # The Friendly URLs part
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
                
                
                # Make sure .htc files are served with the proper MIME type, which is critical
                # for XP SP2. Un-comment if your host allows htaccess MIME type overrides.
                
                #AddType text/x-component .htc
                
                


                This is all the code i have in there .
                I created a page and called it 'test1'. I gave the parent for the page as 1 (i.e. my home page)

                When i view the page, it shows as : http://www.mysite.com/index.php?id=2
                i want it to be listed as www.mysite.com/test1

                Further, il be creating other pages by assigning them the parent as test and call them test1a test 1b and test1c

                So the URL should be like : www.mysite.com/test1/testa

                il be creating other sections too .. like the url wud be www.mysite.com/test2/test2a

                and so on ..

                please help .. i appriciate ur help mates .. thanks a lot..
                  • 3831
                  • 13 Posts
                  just an update .. i am able to go to the content of test1 bytyping : www.mysite.com/2

                  but i want it this way : www.mysite.com/test

                  how can i do that ?

                  thank you.
                  • discuss.answer
                    • 19369
                    • 1,098 Posts
                    Did you select "Yes" in the settings for the Friendly URL?

                    1. Go to "System > System Settings"
                    2. On "Filter By Area...", select "Friendly URL"
                    3. Select value "Yes" for the following:
                    - automatic_alias
                    - friendly_urls
                    - global_duplicate_uri_check
                    - use_alias_path
                      • 3831
                      • 13 Posts
                      yeppers ..

                      thanks a ton microcipcip ..... thanks a lot man ..

                      th only problem now is tht i het a .html extension ..

                      the url is www.mysite.com/test1.html ..

                      can i jst make it as www.mysite.com/test1 ??

                      thanks a million mate ..