LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-24-2021, 02:48 AM   #1
brokenkeys
LQ Newbie
 
Registered: Jul 2019
Location: Croatia
Distribution: Artix, Archlinux, Xubuntu
Posts: 20

Rep: Reputation: Disabled
Help with .htaccess routes


I have route 'website.com/api.php'.

How do I set .htaccess to redirect from:

Code:
website.com/api/login
to:

Code:
website.com/api.php/login
Thanks.

Last edited by brokenkeys; 04-24-2021 at 03:15 AM.
 
Old 04-24-2021, 07:38 AM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,628

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557

Either mod_alias or mod_rewrite can do that.

 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Method for sending messages through alternate routes to same destination, help! I_love_Megatron Linux - Networking 4 01-12-2010 09:56 AM
help with home networking setup and static routes zoidb Linux - Networking 3 03-09-2009 11:42 PM
TNS communication errors with oracle, need help understanding my routes boyd98 AIX 0 10-21-2008 12:45 PM
Static routes using routes/ifroutes-eth-id.. files and default gateway disabled TimtheEagle Linux - Networking 0 05-31-2008 07:08 PM
Contacting INTERNAL LAN server via domain name/full IP? STATIC ROUTES? Please Help!! Bungo2000 Linux - Networking 8 06-27-2003 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration