0
I have several files with various contents, like: ajuda.php? go=Faq, ajuda.php? go=form, etc. Wanted something like: help.site.com/Faq, help.site.com/form, etc. It would be possible via htaccess for the help.php file to be interpreted as directory?
@Bacco is that when creating a subdomain the server understands as folder, so.
– Junior
Easier for you to explain what you want to happen. I couldn’t see the relationship of that last comment to the question. What exactly do you want to do? Subdomain has nothing to do with either PHP or . htaccess directly.
– Bacco
@Bacco look good. Let’s forget php and just focus on htaccess. I already have a lot done (codes) and wanted to take advantage, like: if instead of being displayed in the bar of the website browser.com/help? go=Faq, etc. were help.site.com/Faq. I know this is possible if you made the directory "help" and I pointed the subdomain there, but I wanted it directly in the file already ready.
– Junior
@Junior, there’s no answer clearer than mine.
– Lollipop
See here, we probably already have an answer on the site, what you are looking for is a friendly URL: http://answall.com/search?q=qURL+amigavel+htaccess
– Bacco
Just to comment if someone else needs this type of solution, simpler than all this is to configure the server to treat files with no extension as PHP, so already solve without . htaccess - It can be impractical in a very complex application that is already ready, but to start from scratch, it can be a good one, as long as one has control over the hosting.
– Bacco