Change route

How i can change this route: http://a.epizy.com/CV/public/ to http://a.epizy.com ? Thanks.

what do you mean?
redirection?

You need to move your website files from htdocs/CV/ to simply htdocs/, then use the rewrite rule Admin posted on this article:

RewriteEngine On
RewriteRule (.*) /public/$1 [L]

on a file named .htaccess inside the htdocs folder.

7 Likes

or this

Redirect 301 /CV/public http://a.epizy.com

on .htaccess

No, that won’t work, because he meant to change the website path from the first one to / and not to do a redirect.

1 Like

yes i want to change the first path http://a.epizy.com/CV/public/ to http://a.epizy.com, RewriteEngine On
RewriteRule (.*) /public/$1 [L], it;s not work.

image

I also said this:

3 Likes

image

Now i have path http://a.epizy.com/public/

And NOW you need to create the .htaccess file on the htdocs folder with the following content:

6 Likes

Done, thanks. Now i have path http://a.epizy.com/

1 Like

Remember to mark this topic as solved!

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