Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

How to access .htaccess ?

Sep 10, 2016 12:34AM PDT

I've a window 10 Pro Machine with Apache 2.4.20 (Built PHP 7.0.10) and I want to use .htaccess file in the server root.
I create an .htaccess file using netbeans IDE and put the following codes

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]

But I see no impact on the Zend Skeleton Application and it has not even generate 404 page. But index.php is working fine but ween i type http://localhost/something else. it generate a 404 error generated by server (not generated by MVC skeleton application by zend framework)

Discussion is locked

- Collapse -
Answer
Here's a common issue.
Sep 10, 2016 10:23AM PDT

Folk forget to reboot the server after such changes. Not all are instantly used.

I am not offering support or classes on htaccess (sorry) but you can find a lot more examples and tutorials about this.

Hope it's the usual.

- Collapse -
Answer
Check your Apache configuration
Sep 12, 2016 9:25AM PDT