Hi, UMstratcomm!
Do you have a link to the site? I suspect you need to force query strings as per this FAQ entry. You may need to change qtype as well. There is an EE 1 specific section in there to run through, please let me know if any of that gets this working for you!
Lisa, thanks for the reply.
I tried forcing query strings on my MSM site, but it did not change anything. I also tried changing the qtype on both my default, root-level index.php file, and on my subsite index.php file. This did not work either. I tried creating a third subsite, but get the same behavior. Unfortunately, the site is on a development server and is protected by a firewall, but I am more than happy to share any code or output.
Here is my main site’s .htaccess file (it resides at the server root - /; this site works fine):
RewriteEngine On
RewriteBase /
rewritecond %{http_host} ^mainsitename.edu [nc]
rewriterule ^(.*)$ <a href="http://www.mainsitename.edu/$1">http://www.mainsitename.edu/$1</a> [r=301,nc]
# secure .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Dont list files in index pages
IndexIgnore *
# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
ErrorDocument 404 "File Not Found"
</FilesMatch>
#EE Rules
#using the Inclusion Method (see link above); otherwise, SHIB auth will not work.
#Note that you will need to add any new templage groups to this list.
#The list is auto-generated at /eescripts/generate-template-groups
RewriteCond $1 ^(member|rss|site|RED-Scripts|curators|default|Page_Elements|ums|eescripts|MEET-OUR-IMPACT|Navigation|park|president|totalrewards|info|search|forms|Dept_Embeds|help|LEADERSHIP|comments|ATYOURSERVICE|ENGAGE|STORIES|IMPACT|PS|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
Here is the subsite’s .htaccess file(it resides at /testfile/):
# secure .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Dont list files in index pages
IndexIgnore *
# EE 404 page for missing pages
ErrorDocument 404 /index.php?/
# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
ErrorDocument 404 "File Not Found"
</FilesMatch>
RewriteEngine On
RewriteBase /testsite/
# remove the www
RewriteCond %{HTTP_HOST} ^(www\.$) [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]
# Remove index.php
# Uses the "include method"
# <a href="http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method">http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method</a>
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/testsite/(test-group||members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /testsite/index.php?/$1 [L]
# Remove IE image toolbar
<FilesMatch "\.(html|htm|php)$">
Header set imagetoolbar "no"
</FilesMatch>
Note that when I visit my subsite’s index page (http://mainsitename.edu/testsite/), it works fine. When I visit any other page, specifically with anything typed in for segment_2, I get the following error: Status: 404 Page Not Found.
Everything on the root site has been working fine (it is a mirror of our production site; we have to add some extra sites and have installed MSM on our dev site).
Any other thoughts or suggestions are appreciated, thanks!