A
A
Alexander Bagirov2014-09-08 16:21:07
JavaScript
Alexander Bagirov, 2014-09-08 16:21:07

How to use ModRewrite to change the address of a file?

Hello!
Let's say I have a main page (index.html) and an actions folder that contains various php files. On the main page there is a "registration" button, which, when clicked, redirects to site.ru/register. In the actions folder there is a register.php file for registration. How can I make it so that that php file opens at site.ru/register, but so that site.ru/register is in the address bar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kafeuri1, 2014-09-08
@alexbagirov

RewriteRule ^actions/register.php$ /register [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question