Doubt with htaccess files

Asked

Viewed 21 times

1

I have a question regarding a configuration in my file . htaccess.

I have a page with the following name:

 gastronomia.php

Hence in my file includes the following line to make it friendly:

RewriteRule ^gastronomia$ gastronomia.php

So far so good:

The problem is, I created a subfolder on my website to host the same content in mobile format.

Then, inside the "mobile" folder, there is also a file with the same name - gastronomy.php.

In this case, I sort of set up my file. htaccess in a way that makes it possible for me to also use a friendly url in this file within the subfolder? That is, type www.site.com.br/mobile/gastronomy

Abçs.

  • Creates the . htaccess inside the mobile folder as well.

  • Blz, it worked. obgd amigo =D

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.