I have this htaccess file in the 'public_html' folder:
RewriteEngine On
RewriteRule ^asset/(.*)$ asset.php?code=$1 [NC]
Essentially, the rewrite condition should work as follows. When a user clicks on a link ../asset/XXX, the asset.php
file generates a new webpage containing details of the XXX asset.
The lookup is not working as I think the htaccess file cannot find the 'asset.php
' file.
The asset.php file is located in
'public_html/wp-content/themes/theme1/asset.php'
How can I modify the htaccess file to lookup this file?