after moving site to subdirectory pages are broken

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

after moving site to subdirectory pages are broken

Post by frankmanl »

CMSMS 1.11.12

I want to upgrade a site to CMSMS 2.
I set it up, long ago, in the root directory.
Before upgrading I want to move the whole site to subdirectory /cmsms/
So I copied all files to this subdirectory.
Everything looked fine, untill ... I started removing the old files in the root folder: when removing (or rather renaming) the original plugins directory the site collapses: pages are not or only partially displayed.
So I tried to move (copy) the original site to another domain, set it up there. Then only the index page is displayed, all other pages give a 404 error. But when logging in on that copy in the other domain, I can edit the pages and see correct examples of them in the back end.

How can this be explained? What can I do about this?

I'm happy to provide more details when requested, but don't know where to begin.
For starters below there's the system information of the copy I made in subdirectory /cmsms/

Frank


----------------------------------------------

Cms Version: 1.11.12

Installed Modules:

CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
ModuleManager: 1.5.8
News: 2.14.4
Printing: 1.1.2
Search: 1.7.11
ThemeManager: 1.1.8
TinyMCE: 2.9.12
Gallery: 2.0.1
FormBuilder: 0.8
Captcha: 0.5.0
CMSPrinting: 1.0.5
MicroTiny: 1.2.8
CGExtensions: 1.45
CGSmartImage: 1.17.2
CGSimpleSmarty: 1.7.4
JQueryTools: 1.2.6


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.5.33
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 120
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.6.29
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found


----------------------------------------------
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: after moving site to subdirectory pages are broken

Post by Rolf »

check rewrite_path in .htaccess file
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: after moving site to subdirectory pages are broken

Post by frankmanl »

Hi Rolf, there is no rewrite_path in .htaccess.
I commented out all paths and URL references (root_url, ssl_url, root_path etc.).
Frank
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: after moving site to subdirectory pages are broken

Post by velden »

I think Rolf means 'RewriteBase' in .htaccess. It's only used when you have pretty urls enabled. It would make the homepage (default page) available but all other pages not.

if the sub folder is named 'cmsms' it should read

Code: Select all

RewriteBase /cmsms
I commented out all paths and URL references (root_url, ssl_url, root_path etc.).
Those are in config.php not .htaccess
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: after moving site to subdirectory pages are broken

Post by frankmanl »

Thanks a lot, this solved it, at least in the other domain. But I can go on from there. The original domain should now be OK also.

But an additional question to this: I set RewriteBase /cmsms in the .htaccess of the subdirectory. Is there a need to set anything in the .htaccess of the root directory? I never could quite understand the way .htaccess works ...

Frank

@Rolf - I misread your reply: I looked in config.php in stead of .htaccess
Post Reply

Return to “The Lounge”