Editing .htaccess file

I created a new .htaccess file in the specified htdocs directory, but the friendly URL is still not working and I get a 404 error when trying to access it.

Could you help me with this issue?

Thank you!

What is your url?

Can you share the contents of the htaccess file?

5 Likes
RewriteRule ^api/(.*)$ /Api.php?v=$1 [NC,L]
RewriteRule ^post/(.*)$ /Post.php?v=$1  [NC,L]

What is your URL? I can’t help you if you don’t provide all the information I ask for.

2 Likes

https://apiyt.000.pe/

Can you screenshot the inside of the htdocs directory?

1 Like

I was able to solve the problem; the line ‘RewriteEngine On’ was missing.

3 Likes

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