Results 1 to 7 of 7

Thread: Whats the best to tool to edit .htaccess

  1. #1
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    21
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Whats the best to tool to edit .htaccess

    Hi all i do not know much about .htaccess files and what tool i should use to edit it. Can i just use any html editor to edit this file?

    The code i want to install is for the SEO search as this template on my mates server was made in PHP IDE or PHPBB some code like that.( I think) So with out SEO enabled google search and some other search engines will not see the pagers with the extinction (index.php?p=1_01) and with the SEO on it should see the page name set by the SEO string {%seo%} e.g. Contact us or Home

    I went into perl and typed in mod-rewrite so i think that is installed right allready.

    Of site tuts page:
    NOTE: To use this feature, you server must have mod_rewrite installed and .htaccess configured:

    (the code i wish to enter)
    .htaccess file add-on

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*) index.php

    Thanks again all... all tips and notes of things to watch out for when doing this are welcome

  2. #2
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    21
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    Hi all again, I could not find any tools online for this problem. There TUT's out there on how to make .htaccess files but even then they did not say what tools they are useing . So i just opened the file with notepad and had a look inside and found the code already in there.

    Code:
    # -FrontPage-
    
    
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthUserFile /home/XXXXXXXX/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/XXXXXXXX/public_html/_vti_pvt/service.grp
    AuthName XXXXXXXX.com.au
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*) index.php

    I looked in all the _vti files to find a .htaccess in each one also they only had this code in them:

    Code:
    # -FrontPage-
    
    
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthUserFile /home/XXXXXXXX/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/XXXXXXXX/public_html/_vti_pvt/service.grp
    The only bit of code that I can see, that might be stopping this code working are these 2 lines:

    Code:
    AuthName XXXXXXXX.com.au
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    Or should i add this code to the rest of the other .htaccess files:

    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*) index.php
    [/CODE]

    Any input on how to get this to work I would be ever so great full.
    Last edited by sprinteroz; 01-23-2009 at 07:30 AM.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,373
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    All you need is a text only editor.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    21
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    Hi i changed all the .htaccess files in different ways, to see what it would do if i removed different lines it turns out that nothing changed at all on any of the pages i called. So i made the .htaccess file back to the way they where.

    Also would anyone know of a free downloadable SEO tool that dose not need server side install?

    Problem is still open.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No such thing, I'm afraid.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,373
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    Well, it could be debated that is also a text only editor.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Dec 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Text only editor is correct. I would use notepad to open and subsequently edit the .htaccess file. If you have an issue with that, try right clicking on the .htaccess file and select edit. Or you could download the file with a FTP application first then edit in notepad >save then upload back to the server :-)

    I know this is an old thread but if any else is looking for the answer I would try that.

    Hope this helps.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •