We got 2 domains running to load the same database. The differences between the domain is mainly the style (CSS).
www.reddcoin.online is the main website and www.vergecoin.online is the test in this case. Both systems run perfectly fine and are in sync with the data on the other domain.
The only problem is that when you upload for example a profile picture reddcoin.online it creates the link reddcoin.online/profileimage for example
Problem is that when you go to vergecoin.online it doesnt load this because it doesnt know the path.
We thougt maybe putting in something in the htaccess file to load both/all domains so that even when it places the images at reddcoin.online at least vergecoin.online still finds it. But so far no success
Anyone got some suggestions/solutions?
Related
I am working on an E-Commerce website project which I created in localhost. It worked fine, until I moved it online.
Since I moved it online, I've had issues accessing the admin page and the index.php. I've managed to make the admin page work and can now access the backoffice without any issues, but my index.php still shows me an "error: too many redirects1" page.
What's happening?
Main page of my website is stuck in a redirecting loop (chrome error message : this url tried to redirect you too many times)
Everytime I reload the main page, the url switches between www.mydomain.com and mydomain.com (might be an htaccess issue?)
What I've done to try and solve the problem:
I have checked everything in core_config_data table to make sure
the right urls are written in web/secure/base_url and
web/unsecure/base_url. They are.
I have manually cleared the var/cache and var/session from my
FTP.
I have cleared all cookies / cache from Chrome / Firefox
I have reuploaded the files and database multiple times, thinking it might be due to a corrupted file from the upload.
I have tried to edit the htaccess, but it didn't change anything.
What should I do now ?
I feel like I've tried everything.
As it's my first time with magento, I'm sure it's some dumb thing I might not know about, but I've read nearly every single post about this kind of issues on this website and haven't found anything to resolve it.
So I'm asking you. I'm willing to try every single idea you throw at me, as I've been stuck on this issue for a while now ^^
Thanks for reading :)
Weird, It seems that You make everything right. Try to find and update all url settings in core_config_data: select * from core_config_data where path like '%url%'.
You can try update web/url/redirect_to_base config to 0 (if you have 1).
Remember to clear cache.
Is there a a way to create a custom 404 page for files in the Media directory of Orchard? I would like to show a specific error messages when somebody tries to download a file from a specific path (/Media/Default/MySpecificFolder/) that no longer exists. Right now if a file does not exist it just renders a blank page.
Orchard uses StaticFileHandler for images(anything in the media folder), css and js files among others.
there was a chap who tried to create 'SEO' routes for assets. have a look in the modules gallery.
All said, it seems a bad idea to put assets behind too much logic in the days where more people are using CDN or buckets to provide images to their websites and alleviate the load on the server.
You could go oldskool and override the handler. i used to do it all the time, back in webforms. here is some code that seems like the real thing:StaticFileHandler
Perhaps leave the handler alone for the main web.config but override the ones in the folders you might like to serve your special 404 page.
I do not know why would you need something like that, but go for it.
thinking about it, you could create a shape that would abstract the functionality you are after. Im thinking on the sides of documents mostly, cos i still struggle with the images...
Your shape will tokenise the document in route which will pick up an id or url and if the file does not exists redirect to a 404, but if it exists just send the file.
Does it make sense?
We have just built a new webstore for Grayle (www.grayle.com) in Magento 1.8.1. The webshop consists of multiple stores (including one for another company).
After switching hosting our online websites finally worked. www.grayle.com -> redirects to www.grayle.nl (as it should). www.eviax.nl -> has it's own website.
Now the problem:
At first when we went to www.eviax.nl, we got to www.eviax.nl, then at random someone else tried and got redirected to www.grayle.nl. About 10 minutes later we tried the same thing, we got back at eviax.nl.
What is the problem here? Is it a cache problem in our Magento set-up? Or a problem at the hosts server? Maybe there's something stuck at our provider?
Edit:
My colleague enabled cache cleaning in Magento. This resulted in not being redirected, but now we are not able to update/edit static blocks and the catalogue view in the back-end stopped to work.
Edit:
This has been solved, the "cache cleaning" script somehow blocks all edits.
It seems you have a redirection loop. Try to use a cookie to se the redirection once.
I have moved an Orchard CMS site from one host and server to another host and server. The IP address is obviously different.
All the files have been correctly copied and the correct html is rendered.
However, all the styles sheets produce a 404 error. I repeat that the files are where they should be.
Indeed, any other resource, such as images or stylesheets produce the same problem. Again, the files are all in place.
Can anyone think what could be causing this. Nothing has changed other than the server and IP.
I have another orchard site on the same IP and server that is working fine. However, it was not moved from a different server.
I ping for the site and it comes up with the correct IP address for the new server
EDIT:
Not sure that this is Orchard specific, although something related to Orchard's themes and how they work could be to blame... But I really can't see what.
It sounds much more like an IIS issue.
Can you get the CSS files, by entering their URLs into the browser address-bar directly?
Try "Copy image location" or from the Image Properties, of one of the failed images. Again, can you get this if you enter it direct into the browser?
Check the URL of failed resources, against the URL of working HTML resources or dynamic pages. make sure there are no differences in webapp path or context..
You'll also need to try Ctrl-R reloading.
There could also possibly be some caching in the way.. that might be holding the "404" or "not found" results, even after the content has moved. Try & shutdown/ or force refresh all server & proxy caches.
The server people got back to me. They changed the "website to 4.0 Integrated Pipeline mode." and all now works. Go figure.
I am sure I had checked that it was in Integrated Pipeline mode, but hey ho.
I've been reading a bit about serving my images, javascript and css from a seperate domain.
I have set up a domain, not a sub domain but a new account on my server.
My site is for example: http://www.site.com
I have set up a new account for http://s1.site.com
To cut it short, I have about 40gb of images, so rather me moving it (would also require me to update a few of my scripts as I have scrapers to grab images) I was wondering if there was a way to point my new sub-domain to my other content?
Basically, I want to create a .htaccess file on s1.site.com and get it to pull the info from www.site.com, for example:
http://www.site.com/images/picture.jpg
becomes
http://s1.site.com/images/picture.jpg
But the image doesn't really exist on the s1.site.com, we are just 'mirroring' it using htaccess to save the hassle of copying everything over to the static domain.
Please let me know how this is possible, as it would save me a great deal of time and would work wonders.
I basically just want to make anything on
http://s1.site.com/* pull from /home/originalsite/public_html/(images/js/css folders)