Welcome Guest, Not a member yet? Register   Sign In
Weird problem
#1

[eluser]Unknown[/eluser]
So I have been having this weird problem and I cannot solve if after trying to do everything for hours. I am trying to create a duplicate of my own site within another folder.

My site right now has a subdomain original.domain.com which automatically redirects to original.domain.com/original. inside this /original folder i have the system folder. I am trying to create just another one like it inside original.domain.com/duplicate which also will contain another system folder.

inside the routes.php of each subfolder i have a bunch of redirection like
$routes['adam'] = 'room/people';
so that when I go original.domain.com/original/adam, the controller room will be called and calling the function people.

The problem that I am having right now is that when i try to do
original.domain.com/duplicate/adam
it seems to redirect me to
original.domain.com/original/adam
even tho the url stays
original.domain.com/duplicate/adam

The funny thing is that even after I deleted the $routes['adam'] inside the duplicate subfolder, I can still do original.domain.com/duplicate/adam which will show me the page of original.domain.com/original/adam (even though the url still stays with the duplicate site)

I am wondering if anyone can help me with this or may be suggest what files I can check which might cause such issues to arise.

Sorry I am not allowed to be very specific here because I cannot disclose too much information about the site.
#2

[eluser]sortof_user[/eluser]
I believe your problem is cahing problem either disable cache fron config file or try to fresh request the page by hitting ctrl+shift+del on pc and delete the browser cache then refresh your page.
#3

[eluser]Unknown[/eluser]
Thank you for your reply but I believe the problem is deeper than that. I know this because I created a controller class which just prints out the base_url();

I went to original.domain.com/duplicate/test
and guess what I got?

original.domain.com/original/

They are in two different folder but for some reason it just redirects. I have a suspicion that this is caused by the domain forwardng. original.domain.com directs to original.domain.com/original right away and this might be why.

Please share your insights. Any comments will be very much appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB