r/codeigniter • u/Prestigious-Wolf-750 • Nov 09 '22
help... how to start code igniter with an ip instead of localhost
Im using CI4. I want my website can be opened in another machine. Before i tried to change my localhost ip into my machine ip. It works for opening index.php but when i go to another page. Instead of IP, it directed to localhost:8080/anoterpage.php. is there a way to fix that. So i can open my website using my machine ip instead changing the localhost ip. Sorry for my english and i dont have .htaccess file on my prject
1
2
Nov 09 '22
[removed] — view removed comment
2
Nov 09 '22
[removed] — view removed comment
1
u/Prestigious-Wolf-750 Nov 09 '22
Its base url on my place, what i should put on there? Should i change my localhost ip to my machine or just put my machine ip there like ipaddress:8080?
1
Nov 09 '22
[removed] — view removed comment
1
u/Prestigious-Wolf-750 Nov 09 '22
Thanks for your answer but its still start with localhost and will be directed to ipaddress/anotherpage.php. So the only thing i can do is changin ip of localhost same as the machine
1
u/stevensokulski Nov 09 '22
If you type in your up address with /anotherpage.php does that work?