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
Software Development
Programming
Programming Q&A
[HELP] .htaccess (keeps returning 500 even though it's active)
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="bodge" data-source="post: 235349" data-attributes="member: 8655"><p>Hello Devbest, I am having trouble with .htaccess</p><p>Even though it is ON, I can use it to do my .htaccess and .htpasswd with no errors (I do this via Webmin).</p><p>But, I'm trying to hide my file extensions and my web server is saying "NO".</p><p></p><p>I've tried these codes and none of them work :L</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>[CODE]RewriteRule ^home$ home.php [L][/CODE]</p><p></p><p>Any help?</p><p></p><p>My Apache version is: 2.2.22</p><p></p><p></p><p></p><p></p><p><strong><span style="font-size: 18px"><span style="color: #ff0000">EDIT</span></span></strong>: I have fixed the code returning an error 500, had to run something in Terminal, but the .PHP extension doesn't seem to work still? Says "/home/login" doesn't exist however I have to use .php :S</p></blockquote><p></p>
[QUOTE="bodge, post: 235349, member: 8655"] Hello Devbest, I am having trouble with .htaccess Even though it is ON, I can use it to do my .htaccess and .htpasswd with no errors (I do this via Webmin). But, I'm trying to hide my file extensions and my web server is saying "NO". I've tried these codes and none of them work :L [CODE]RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php[/CODE] [CODE]RewriteRule ^home$ home.php [L][/CODE] Any help? My Apache version is: 2.2.22 [B][SIZE=5][COLOR=#ff0000]EDIT[/COLOR][/SIZE][/B]: I have fixed the code returning an error 500, had to run something in Terminal, but the .PHP extension doesn't seem to work still? Says "/home/login" doesn't exist however I have to use .php :S [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[HELP] .htaccess (keeps returning 500 even though it's active)
Top