Results 1 to 2 of 2
-
16th Dec 2010, 03:44 AM #1OPMember
.htaccess help
I have two indexes in the same folder. one is .html and the other is .php.
How can i make it load up the html as a default when my website is visited? I dont have access to the apache conf so i was wondering how can I do it in .htaccess. Also i want to hide the extension on index .html, what will the mod_rewrite line be?FancyPants Reviewed by FancyPants on . .htaccess help I have two indexes in the same folder. one is .html and the other is .php. How can i make it load up the html as a default when my website is visited? I dont have access to the apache conf so i was wondering how can I do it in .htaccess. Also i want to hide the extension on index .html, what will the mod_rewrite line be? Rating: 5
-
16th Dec 2010, 03:56 AM #2MemberWebsite's:
Doxsters.net1:
Code:DirectoryIndex index.html
2:
Code:RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html
btw that's not my own code, can't remember where I got it from it's just what ive been using for a while
Need a Designer/Web Developer? Click Me
MSN: PM me for it.
Email(Preferred):timtamboy63@gmail.com
"Power Corrupts. Absolute Power Corrupts Absolutely"
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Vb Seo .htaccess Help
By sunnyx12x21x in forum vBulletinReplies: 9Last Post: 17th Jul 2011, 11:25 AM -
help with htaccess
By softleaks in forum Webmaster DiscussionReplies: 2Last Post: 3rd Jun 2011, 06:43 PM -
.htaccess Help Please
By l0calh0st in forum Web Development AreaReplies: 3Last Post: 4th Apr 2011, 03:29 PM -
Help with .htaccess
By woja in forum vBulletinReplies: 1Last Post: 25th Jan 2011, 11:11 PM -
.htaccess help
By Nemesis in forum Webmaster DiscussionReplies: 1Last Post: 21st Mar 2010, 07:13 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...