Home How to change URL name using .htaccess without redirecting
Reply: 0

How to change URL name using .htaccess without redirecting

user650
1#
user650 Published in June 19, 2018, 6:26 pm

I have a script written in Laravel, which returns information about git repositories in JSON. I've set it on some server, however the URL looks like this:

/GLara/public/repositories/{account_name}/{repository_name}

and I would love to get it like this:

/repositories/{account_name}/{repository_name}

I've tried using .htaccess, but I don't know how to use it not to redirect a client to a directory that not exists (have 404 right now, because there is no such directory like /repositories in main catalog).

Could you please advise me how could I do it?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.422211 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO