icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHPsuexec » .htacess rename engine?

PHPsuexec Information and tips

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old January 15th, 2007, 8:45 AM   #10 (permalink)
Registered User
Comfy Contributor
 
Joined in Jun 2006
106 posts
Gave thanks: 5
Thanked 1 Time in 1 Post
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9])$ $1.html

This didn't work. :/
There is also a way to tell it if no variable is there, default to index.html
Savesheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 15th, 2007, 10:22 AM   #11 (permalink)
H
after g, before i
Super #1
 
H's Avatar
 
Joined in Jul 2004
Hosted on Gojira
7,883 posts
Gave thanks: 44
Thanked 127 times
Quote:
Originally Posted by Savesheep View Post
What does this do?
It detects if there's an actual folder or file with that name.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 17th, 2007, 11:27 AM   #12 (permalink)
Registered User
Comfy Contributor
 
Joined in Jun 2006
106 posts
Gave thanks: 5
Thanked 1 Time in 1 Post
For the future,

DirectoryIndex index.html
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^([a-zA-Z0-9]+)$ $1.html [L]

This works no problem at all.

Also, I noticed when i searched the forum for '.htaccess' and clicked on my thread, it wouldn't load saying it was forbidden. so i removed the &highlight=.htaccess and it loaded no problem =)
Savesheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks Savesheep for this great post!
Kickersny.com (January 17th, 2007)
Old January 17th, 2007, 8:44 PM   #13 (permalink)
Surpass Fan
Super #1
 
Joined in Aug 2004
Hosted on SH58
1,687 posts
Gave thanks: 6
Thanked 7 times
Quote:
Originally Posted by Savesheep View Post
Also, I noticed when i searched the forum for '.htaccess' and clicked on my thread, it wouldn't load saying it was forbidden. so i removed the &highlight=.htaccess and it loaded no problem =)
Protection feature to prevent the server's .htaccess file from being viewed. Search for "htaccess" next time.
__________________
- Evan Charlton | [site] | Server - SH58
Kickersny.com is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On