View Full Version : Whats the best to tool to edit .htaccess
sprinteroz
01-23-2009, 01:58 AM
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
sprinteroz
01-23-2009, 07:24 AM
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.
# -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:
# -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:
AuthName XXXXXXXX.com.au
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
Or should i add this code to the rest of the other .htaccess files:
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.
jscheuer1
01-23-2009, 07:29 AM
All you need is a text only editor.
sprinteroz
01-23-2009, 11:54 AM
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.
No such thing, I'm afraid.
jscheuer1
01-23-2009, 02:57 PM
Well, it could be debated that is also a text only editor. :)
neil100
12-30-2011, 08:36 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.