My htaccess code
RewriteRule ^example1/([A-Za-z-]+)/?$ example2.php?name=$1 [NC]
My page is getting loaded but all the css and js are getting broke. Please Help me out.
You should check if the request uri matches the existing file / director before applying the RewriteRule
.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^example1/([A-Za-z-]+)/?$ example2.php?name=$1 [NC]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.