+2 votes
8 views

My very simple .htaccess rules doesn’t work for .php files but for .html works fine.

RewriteEngine On
RewriteRule ^about$ about.html [NC]

This one correct display about.html when i user /about

RewriteEngine On
RewriteRule ^about$ about.php [NC]

This doesn’t work. Do you have any idea? Ubuntu 16 server with apache2

And one more, when i remove

RewriteRule ^about$ about.html [NC]

from first options redirection still works…

My conf looks like this:

<Directory /var/www/html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    allow from all
</Directory>
by (1.7k points)   | 8 views

Please log in or register to answer this question.

Related questions

+2 votes
0 answers
asked Jun 17 by abrishnoor (1.7k points) | 4 views
+2 votes
0 answers
asked Jun 20 by athar (2.6k points) | 12 views
+1 vote
1 answer
+3 votes
1 answer
asked Jun 19 by athar (2.6k points) | 9 views
+2 votes
0 answers
+1 vote
0 answers




Welcome to Meansflow - Where Developers and Students Learn, Share, & Build Careers, where you can ask questions and receive answers from other members of the community.
108 questions
79 answers
37 comments
99 users