PHPMaker 2021 requires URL Rewrite.
If you use Apache web server, check phpinfo(), search for ‘mod_rewrite’. If it is enabled you should see it as ‘Loaded Modules’. If not, open httpd.conf (Apache Config file) and look for:
#LoadModule rewrite_module modules/mod_rewrite.so
Remove the pound (‘#’) sign at the start and save the file. Restart your Apache server. Check phpinfo() and search for ‘mod_rewrite’ again. You should be able to find it now.Some users report that their Apache servers requires RewriteBase directive:You may check your .htaccess at the project folder, the content should be like:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
If your server requires RewriteBase, you need to add one more line, e.g.a. If you generate to root folder of your site,
RewriteEngine On
RewriteBase /
...(omitted)...
b. If you generate to a subfolder (e.g. “demo2021”) of your site,
RewriteEngine On
RewriteBase /demo2021/
...(omitted)...
If your server requires this setting, you can click Tools → Advanced Settings and set “RewriteBase directive”, e.g. / or /demo2021/, then generate .htaccess files again. Note that there are 2 .htaccess files, one under the project folder, the other under the “api” subfolder.Make sure your virtual host is configured with the AllowOverride option so that the .htaccess rewrite rules can be used. Open your httpd.conf or apache.conf in a text editor, and locate the section and change the AllowOverride line to:
AllowOverride All
Also read URL Rewrite for more information about other web servers.