0

I have a website that's running correctly, now to setup a beta environment I copied the whole structure into a subfolder. So instead of var/www I have var/www/beta/.

This worked on my old server but on my new one its throwing me the "Unable to resolve the request" error. I've changed all the rights and checked the linking of the files. The main page shows up correctly but when clicking a link that goes deeper into the site it gives me the 404 error.

When I set the default controller a link will work. When I try to go to that url myself it will not, I'm thinking something is up with my urlManager ? (So www.website.com/xx/yy/2 wont work but defaulController = 'xx/yy/2'; and go to www.website.com will show the page)

Any help / insight would be appreciated.

Marlon
  • 19,924
  • 12
  • 70
  • 101
xStoryTeller
  • 51
  • 1
  • 7
  • What is your `urlManager` configuration? Check `.htaccess` rewrite rules. Or remove/rename `.htaccess` and set `'showScriptName' => true,` for `urlManager`. This way you will not need the rewrite rules and will be able to check for sure if there is something wrong with your generated urls. – Boris Belenski Jun 17 '12 at 11:27

1 Answers1

0

If you're using apache, you'll need to update your RewriteBase, like this:

in var/www/beta/.htaccess, add:

RewriteEngine On
RewriteBase /beta/

This should do it.

mjalajel
  • 2,171
  • 21
  • 27