Hi all.
I have a weird issue. my home page url works fine:
I go to
http://www.mysite.com (doesn’t change to
http://www.mysite.com/index.html)
so then I click on
http://www.mysite.com/howitworks.html and again, it works. But when I click on
http://www.mysite.com/newstuff.html from
http://www.mysite.com/howitworks.html? then it puts in the folder name.
http://www.mysite.com/my-site/newstuff.html ....and the page shows but all of my image links and styles are broken.BUT if instead I click on
http://www.mysite.com and THEN go to
http://www.mysite.com/my-site/newstuff.html then everything works.
the site tree is set up thusly:
my-site
- howitworks
-newstuff
myqa-site
-howitworks
-newstuff
and my htaccess is like this:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# First be sure to rewrite the request to a unique domain
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^wwwqa\.mysite\.com [NC]
# rewrite the homepage of each domain to index.html
RewriteRule ^wwwqa-mysite-com\.html$ /index.html
# do the other magic: Rewrite the the requests to for MODx readable folders
RewriteCond %{HTTP_HOST} wwwqa\.mysite\.com [NC]
RewriteCond %{REQUEST_URI} !^/manager
RewriteCond %{REQUEST_FILENAME} index\.php [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(index\.(html?|php)|wwwqa-mysite-com)?(.*)$ index.php?q=/wwwqa-mysite-com/$3 [L,QSA]
#RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$
#RewriteRule ^(.+)$ - [env=askapache:%2]
# First be sure to rewrite the request to a unique domain
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^mysite\.com [NC]
RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC]
#RewriteRule (.*) http%{ENV:askapache}://www.mysite.com/$1 [R=301,L]
# rewrite the homepage of each domain to index.html
RewriteRule ^www-mysite-com\.html$ /index.html
# do the other magic: Rewrite the the requests to for MODx readable folders
RewriteCond %{HTTP_HOST} mysite\.com [NC]
RewriteCond %{REQUEST_URI} !^/manager
RewriteCond %{REQUEST_FILENAME} index\.php [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(index\.(html?|php)|www-mysite-com)?(.*)$ index.php?q=/www-mysite-com/$3 [L,QSA]
I will add that I did not set this up, this is a site I am taking over and and when I change the file and uncomment this:
#RewriteRule (.*) http%{ENV:askapache}://www.mysite.com/$1 [R=301,L]
or add
#RewriteRule (.*) http%{ENV:askapache}://wwwqa.mysite.com/$1 [R=301,L] up top OR
if I add in their equivalents form the tutorial (the line in the tute is different) then it breaks. Which makes me suspect there is an apache rule elsewhere... the server is set up oddly.
the multisite plugin is exactly as it should be, same as the example. and I do have a 404 page and it works, I added that.
as a result of all of this, Wayfinder doesnt work. a lot of things do not work. The previous templates were all basically static html that some poor sot hard coded into the template, and they never used most of the functionality of modx ...so it didnt matter.
thank you in advance.