Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[SIMPLE HELP] .PHP Fix
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TesoMayn" data-source="post: 188082" data-attributes="member: 8605"><p>For .htaccess</p><p> </p><p>[code]RewriteEngine on</p><p>RewriteCond %{REQUEST_FILENAME} !-d</p><p>RewriteCond %{REQUEST_FILENAME}\.php -f</p><p>RewriteRule ^(.*)$ $1.php[/code]</p><p> </p><p>For web.config do</p><p> </p><p>[code]<rewrite></p><p><rules></p><p><rule name="rewrite php"></p><p><match url="(.*)" /></p><p><conditions logicalGrouping="MatchAll"></p><p><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /></p><p><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></p><p><add input="{REQUEST_FILENAME}" negate="true" pattern="(.*).php" /></p><p></conditions></p><p><action type="Rewrite" url="{R:1}.php" /></p><p></rule></p><p></rules></p><p></rewrite>[/code]</p><p> </p><p>Put that before</p><p>[code]</system.webServer>[/code]</p></blockquote><p></p>
[QUOTE="TesoMayn, post: 188082, member: 8605"] For .htaccess [code]RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php[/code] For web.config do [code]<rewrite> <rules> <rule name="rewrite php"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_FILENAME}" negate="true" pattern="(.*).php" /> </conditions> <action type="Rewrite" url="{R:1}.php" /> </rule> </rules> </rewrite>[/code] Put that before [code]</system.webServer>[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[SIMPLE HELP] .PHP Fix
Top