Report this

What is the reason for this report?

Why my htacess is not working as another server

Posted on December 4, 2017

This is my demo website link as below.

http://24jobs.datalinkmm.com/

my htacess code is as per below

Options +MultiViews

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^.]+)$ $1.aspx [NC,L]

ErrorDocument 404 /404.php

Why htacess is not working in digital ocean like my demo website.

is not working when I try to open like this url : http://my-hosting-ip/job-search/

url is going back to index.php or 404.php

Please someone help to solve this problem.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Set up the mass virtual with:

VirtualDocumentRoot /var/www/html/%0

But didn’t allow override for the parent directory.

<Directory "/var/www/html">
        AllowOverride ALL
</Directory>
VirtualDocumentRoot /var/www/html/%0

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.