Help - Search - Members - Calendar
Full Version: .htaccess
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > Other Languages
Jordan Parker
This is my .htaccess file,
i edited it so i could change things like main.php to /main

do you think it looks ok before i save it ?

CODE
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allowdeny from allallow from all
</Limit>
<Limit PUT DELETE>
order deny,allowdeny from all
</Limit>
AuthName jordanparker.co.uk
AuthUserFile /home/*******/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/*******/public_html/_vti_pvt/service.grp

RewriteEngine On

RewriteBase /

RewriteRule ^contact contact.php

RewriteRule ^about about.php

RewriteRule ^portfolio portfolio.php

RewriteRule ^tutorials tutorials.php

RewriteRule ^affiliates affiliates.php
SP_
Looks okay to me. Pretty basic.
MrTouz
so thats how they do it :/ damn i was wondering all the time.... im stupid.... tongue.gif
Zytran
CODE

RewriteRule ^contact contact.php
RewriteRule ^about about.php
RewriteRule ^portfolio portfolio.php
RewriteRule ^tutorials tutorials.php
RewriteRule ^affiliates affiliates.php


You could also do this.
CODE

RewriteRule ^about(.*)$ about.php [L]

Then you could do /about OR about.html OR about.htm OR about.cvs OR about.ANYTHING
Jordan Parker
Zytran your the man wink.gif
i'm going to uses that now thanks biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.