0

I am new to Apache and recently my developer passed me the website with htaccess to host on Apache 2.4 running on CentOS 7, the website is running on the Windows laptop but not on the server with the same htaccess.

The webpage works like this, when user hits the url at http://www.example.com, and click on the links, it will load the rest of the files from a folder called interface.

The original htaccess as follow:

RewriteEngine On

#this is for specific users
RewriteBase /v1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /v1/index.php?m=$1 [QSA,NC,L]

ErrorDocument 404 /v1/error.php?=error

However it only load the main page, and the rest will load as follow:

Not Found
The requested URL /example was not found on this server.

I have tried the recommendations on this page Generic htaccess redirect www to non-www

and this page .htaccess for cakephp

and this page Remove .php extension with .htaccess

however all of them not working as what we want.

Any way I can get it to work?

ronnie
  • 41
  • 1
  • 5

0 Answers0