No extentions
- Jordan
-
Jordan
- Member since: Apr. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
What is the .htaccess to that i can go to /index, but it would send /index.php?
Thanks.
- elbekko
-
elbekko
- Member since: Jul. 23, 2004
- Offline.
-
- Forum Stats
- Member
- Level 16
- Blank Slate
"My software never has bugs. It just develops random features. " - Unknown
[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]
- Jordan
-
Jordan
- Member since: Apr. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
No, i need it so that i can go to domain.com/index or domain.com/profile and it send back index.php or profile.php.
So it is like hiding the extensions.
- elbekko
-
elbekko
- Member since: Jul. 23, 2004
- Offline.
-
- Forum Stats
- Member
- Level 16
- Blank Slate
Oh.
RewriteEngine On
RewriteRule ^(.+)$ $1.php
That should do it I think
"My software never has bugs. It just develops random features. " - Unknown
[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]
- Jordan
-
Jordan
- Member since: Apr. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
At 11/6/06 01:45 PM, elbekko wrote: That should do it I think
"Internal Server Error"
:S
- elbekko
-
elbekko
- Member since: Jul. 23, 2004
- Offline.
-
- Forum Stats
- Member
- Level 16
- Blank Slate
Odd... maybe you should put something after the rule, like [NR].
I'm not too good with this stuff =/
"My software never has bugs. It just develops random features. " - Unknown
[ FluxBB developer | Quickmarks 0.5.1 | Strings & Ints - my blog ]
- Jordan
-
Jordan
- Member since: Apr. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
Right, i have this htaccess:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)j view.php?file=$1
At the moment, going to /view/lolj is actually /view/view.php?file=lol. But i can't seem to make it work without something after the ^(.*) so i have to write whatever i put after it after every combination of letters, in this case "j". But how can i make it so i won't need this?
Can be seen working here:
http://www.knockaround.co.uk/view/ajshdflkjsh fjashdfjhsdhfjaksfsflhdfhljkfj

