Obsolete Releases > SME 8.x Contribs
custom template help needed for hosts file / wordpress
calisun:
I keep my fingers crossed, but I think I have figured this out. It is a combination of wordpress and SME issue.
Here is wordpress issue which I have posted it to wordpress forums:
--- Quote ---The reason that https:// works is because it looks like the wordpress primary domain gets called first and it forwards the request to the subfolder, so it looks something like this:
"GET /employment-office/files/2012/05/.......
and I see corresponding code 200 (OK)
but when I go http://
it looks like it gets sent directly to corresponding domain and domain sends code like this:
"GET /files/2012/05/......
and I see corresponding code 404 (Not Found)
The strange thing is that no matter http or https, the header image always gets called:
"GET /employment-office/files/2012/05/.......
and it always shows up.
--- End quote ---
-->> The SME issue is that when wordpress was calling for "GET /files/2012/05/......, SME was looking in: /iBay/files
I don't understand why it would drop down a level from /html directory since inside wordpress it is set as the base directory.
Anyway, my workaround that seems to work for now is to rename /files directory, so when SME does not find it (I am assuming) it looks inside /html directory.
janet:
calisun
--- Quote ---my workaround that seems to work for now is to rename /files directory, so when SME does not find it (I am assuming) it looks inside /html directory.
--- End quote ---
I assume you mean rename
/home/e-smith/files/ibays/my-empire/files/
That .../files folder will probably be recreated during a major system event eg post-upgrade or ibay changes
If I understand and/or assume what your issue is correctly, then perhaps a better long term solution is to move the contents of
/home/e-smith/files/ibays/my-empire/html/files/
to
/home/e-smith/files/ibays/my-empire/files/
or otherwise change the code to read the correct ..../files/ folder
CharlieBrady:
--- Quote from: calisun on September 30, 2012, 05:50:53 AM ---I don't understand why it would drop down a level from /html directory since inside wordpress it is set as the base directory.
--- End quote ---
That's just the way that i-bays work. They are designed to be that way. This is one of the reasons why I've always there are better ways to deploy web applications than just dropping them in an i-bay. Use a custom template, or better yet, a contrib rpm which provides the correct application specific template.
calisun:
Hi Mary, good to hear from you
--- Quote from: mary on September 30, 2012, 07:03:51 AM ---calisun
I assume you mean rename
/home/e-smith/files/ibays/my-empire/files/
--- End quote ---
yes, that is correct.
--- Quote from: mary on September 30, 2012, 07:03:51 AM ---That .../files folder will probably be recreated during a major system event eg post-upgrade or ibay changes
--- End quote ---
I just did system update, and post-upgrade, and the change is still there.
--- Quote from: mary on September 30, 2012, 07:03:51 AM ---If I understand and/or assume what your issue is correctly, then perhaps a better long term solution is to move the contents of
/home/e-smith/files/ibays/my-empire/html/files/
to
/home/e-smith/files/ibays/my-empire/files/
--- End quote ---
The issue is that there is no such folder as:
/home/e-smith/files/ibays/my-empire/html/files/
the wordpress folder structure is:
/home/e-smith/files/ibays/my-empire/html/wp-content/blogs.dir/#/files/2012/09/ (# is blog#)
wordpress uses htaccess to rewrite / shorten the URL.
--- Quote from: mary on September 30, 2012, 07:03:51 AM ---or otherwise change the code to read the correct ..../files/ folder
--- End quote ---
Personally I have no idea where in code the call is created, so I have posted a question on wordpress forum to see if anybody knows.
But in the mean time, my trick to rename /files folder seems to work.
newburns:
I am now dealing with this, but renaming "'ibay'/files" to "'ibay'/fi" does not solve it for me.
If installed to the /opt directory through the rpm or SMESiteMaker, you cannot successfuly run a multisite installation, there's no way to point the domain to an /opt/ directory instead of an ibay. So in order to use Wordpress MU as your main CMS, it has to be in an ibay. Any more development on this issue with the url rewrite rule? Anyway to change the rewrite rule to include the right GET for the primary domain?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version