[Resolved] URL issue after moving site.
Permalink
Hey all,
Recently moved my site, it's now residing at:
URL Removed :D
Home page is fine but any sub page is mangled (URL Removed :D)
- I've added a base url to my config, emptied cache, removed htaccess and rebuilt it etc.
Seems like the concrete is looking for it's files using the new url as the base:
Eg looking for URL Removed :D
Here:
URL Removed :D
Anyone encountered this?
Recently moved my site, it's now residing at:
URL Removed :D
Home page is fine but any sub page is mangled (URL Removed :D)
- I've added a base url to my config, emptied cache, removed htaccess and rebuilt it etc.
Seems like the concrete is looking for it's files using the new url as the base:
Eg looking for URL Removed :D
Here:
URL Removed :D
Anyone encountered this?
Such problems are nearly always that config/site.php or .htaccess have not been updated to reflect the new location.
Indeed.
You're better off deleting your .htaccess, and then recreating/regenerating it by going to the dashboard and disabling and then re enabling pretty urls. This will write a properly formatted .htaccess file back to your root folder, assuming your webserver cna write to that folder.
If your C5 installation is now in root, your config/site.php should have a DIR_REL value of ''
If you can't login, remember so use index.php/login, not /login
You're better off deleting your .htaccess, and then recreating/regenerating it by going to the dashboard and disabling and then re enabling pretty urls. This will write a properly formatted .htaccess file back to your root folder, assuming your webserver cna write to that folder.
If your C5 installation is now in root, your config/site.php should have a DIR_REL value of ''
If you can't login, remember so use index.php/login, not /login
I found the problem, the htaccess needed to be changed:
From
To
Thanks for the help!
From
RewriteRule ^(.*)$ index.php/$1 [L]
To
RewriteRule ^.*$ index.php [L]
Thanks for the help!
This was exactly what happened to me and your post saved me from hours of having to rebuild what I thought was a hopelessly broken site. Thank you for posting this!!!!