Why inner pages are not working except homepage?

Username (http://mobileinfoworld.com/)

(please specify the website or account you are asking about)

Error Message

(please share the FULL error message you see)
I can access my php file from root but not able to reach out inner pages. It always goes to hosting 404page please help me on this?

Other Information

(other information and details relevant to your question)

404 means that the server cannot find the file, so you need to make sure those files exist.

Those are not real file those files urls are being generated automatically with database entries please review the site http://mobileinfoworld.com

inner directory htaccess

RewriteEngine on
RewriteRule ^(*.html)$ /xyz.php [nc]

This is an invalid regex. An asterisk matches 0 or more of the previous expression, so in this case, it is trying to match nothing (because there is no previous expression), which will cause an error.

This is correct:

RewriteRule ^([a-zA-Z0-9]*).html$ /xyz.php [NC]

Also, make sure all of your files are set up correctly to handle requests like this.


Thank you


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.