How to solve domain & subdomain issue in Joomla 1.5? - configuration

I have a Joomla 1.5 site published on http://domain.com/subdomain. Now I have added a subdomain using the host provider (Yahoo Small Business) that points to the subdomain folder:
subdomain.domain.com points to domain.com/subdomain
domain.com/subdomain works fine, but when I go to subdomain.domain.com, only the menu shows (but not formatted) on a black background. When I click an item it goes to http://subdomain.domain.com/subdomain/index.php/clicked-item and gives me a 404 error. ([Edit 1] Shouldn't it be something like http://subdomain.domain.com/index.php/clicked-item? When I manually enter http://subdomain.domain.com/index.php/clicked-item again I'm welcomed with a 404.)
Any help will be highly appreciated.
[Edit 2]
I've deactivated Search Engine Friendly URLs and this is the behavior now:
still when I go to subdomain.domain.com, only the menu shows (but not formatted) on a black background;
still when I click an item it goes to http://subdomain.domain.com/subdomain/index.php/clicked-item-and-stuff and gives me a 404 error;
but when I manually enter http://subdomain.domain.com/index.php/clicked-item-and-stuff it shows me the requested page, but without any formatting.
[Edit 3]
Please have in mind that I'm using Yahoo Small Business which doesn't allow .htaccess.
Until I find a proper solution, I'm just using a hack: subdomain.domain.com points to domain.com/another-subdomain which redirects to domain.com/subdomain where Joomla is installed.

Check your configuration.php file in your root to ensure the live_site parameter is set to your correct base url e.g. subdomain.domain.com

Related

Magento images not showing anywhere

I just installed a fresh copy of Magento 1.9.2.3. Now my issue is when I try to upload any images, be it product, category, transactional email, ect. it gives me the little broken image placeholder. Now the steps I have tried so far:
Changed \media folder to 777
Flushed all Cache (Magento and images)
Read endless questions on similar issues but to no avail.
This is happening in the frontend and Admin
I have checked the link it creates to the image and when I put that in the address bar it gives me a "404 not found" error.
I have checked that the image is indeed uploaded to the folder that the site is pointing to.
Note: I have had Magento running on this server previously, but it is one to two versions older.
URL is http://southernperformanceparts.com - In case you want to take a look
Screenshot
Can anyone give me some direction here.
Thank you in advance.
Seems to be a right problem.
Are the images set to 644?
You could change your Uploader.php (lib/Varien/File)
search for "chmod($destinationFile, 0640);" and change it to 0644
and search for
"if (!(#is_dir($destinationFolder) || #mkdir($destinationFolder, 0750, true)))" and change it to 0755
In the future the images should get the correct rights after uploading.

custom 404 not found page, how to make it?

Making updates on my website, there are a lot of pages that I don't use left. So I delete them.
Unfortunately some slight idexing has been made by search engine so when u type the name of website of mine it appears non more existent pages too in browser results.
I need to create a custum 404 page not found that appears everytime people go on pages that doesn't exist, respecting google SEO policy and w3c standards.
Unfortunately I can't.
Someone could teach me please?
Make a .html document in your webserver or website's directory in the htdocs then make a new folder that is called "err", then upload all your Error pages like 404, The page cannot be found or 403, Forbidden. Then place those files in the err folder and re-name them to the error codes. If you are using cPanel then search (Using the search bar) or find (By browsing the tools listed) Error Pages. Go from there with the instructions given on cPanel.
Hope this helps you,
Jay Salway (13 year old developer)
Create a static page containing your custom message and anything else you want (eg. site layout etc.) and save it somewhere appropriate within your site (eg. from the root: /errors/404.asp). Within that page make sure you write a 404 response header (eg. Response.Status = "404 Page Not found")
In IIS (the option will also be available somewhere similar under Apache if you are running that) open up the settings for your website and choose 'Error Pages' then look for the status code 404 (by default there should be one but you may need to create it) open that up and choose the option 'Execute a URL on this site' and enter the url chosen above /error/404.asp)

Some images won't show when moved Wordpress site to another domain on same server

I've developed a new wordpress website on a testing domain name on our server.
I had set the site up ready to go live... but I had to move the wordpress website onto another domain name that we are also hosting on our server.
So what I did was copy all root folder content from the testing domain name and pasted the content into the new domain name's root folder.
I then logged into wordpress, changed all the necessary settings like WORDPRESS URL and SITE ADDRESS URL as well as image absolute urls in each and every individual pages to make sure that I've got the right URL for everything.
When I click on MEDIA, I can see all the images like normal.
Great ... then I go and check the website live and I see that there are a lot of images that are missing! They are all in the MEDIA panel - but do not show up on the website!
I then double check that all images are pathed correctly ... and they all are.
Now why do SOME images show up and others don't?
I've even tried to add a new photo and use that photo in place of another photo that isn't showing up and that new photo doesn't even show up.
Where does my problem lie?
For example, 1 slideshow on my website which isn't showing images, give me an "image not found" error for a image:
Image not found: http://www.domain.com/wp-content/themes/natural
/lib/timthumb.php?src=http://www.domain.com/wp-content/uploads/2012/08/breakfast-gallery-011.jpg&w=610&h=0&zc=1
Ok I am going to answer my question with some advice.
It's clear that some of my images were 'hard coded' as devin mentioned as I could not find a logical reason for some not showing (even when I looked at the tabular data in MySQL) and because I'm not a database engineer / developer - I wasn't prepared to dive too deep into that with the possibility of causing further issues... so I decided to take down the entire wordpress site, create a new database, re-install wordpress and I imported an exported xml file that I created and saved (luckily) before 'migrating sites'.
Advice:
1) Whether you migrate a wordpress site or not, always backup your website regularly by creating an export of your wordpress structure. It may save you a lot of work in future.
2) If you're an amateur or beginner at development and MYSQL like myself, I'd suggest you create your wordpress site on the actual domain name you want it on. This will save you from 'migration' headaches as I've just experienced ... and a lot of time. Learn from my mistakes. Although there is probably a solution to my question above, it's out of my expertise / knowledge and could be out of yours too... so make it easy for yourself :)
The issue is not that the image URls are hardcoded only. The last portion of the URL is harcoded, but you will most likely have "/wp-content/" embedded in the URL which indicates that the image's URL string is dynamically created. I looked in my wp_postmeta table and there were all of the partial image URls ( like this - 2013/03/expanse2.jpg ). Now where is the beginning part of this URL and the domain name? The domain name is the part that is actually missing from the all of the image urls in my case. I dug into the database a little deeper using phpmyadmin ( but i recommend Webmin if you can get it up and running ). I ran into the "home" field in the "wp_options" table. Asked Google what a proper "home url" would be for wordpress, which brought me to this page ( http://codex.wordpress.org/Function_Reference/home_url ) , and this line was in there ( home_url() is located in wp-includes/link-template.php. ). Went to that file and found that it controls how URLs are built, but not uploaded image urls specifically. In the end i went into a page that had an image, looked at the advanced settings and found the image URL was just missing the domain. I used the wonderful search and replace script to repair it. Done

Links not working on first click on oscommerce

There is an oscommerce site that I maintain now. There are some links on the homepage like below when one visits the site first time.
http://website.com/index.php?cPath=2?osCsid=80b28bcd9ad38e38e7ded7e200f87b30
This click leads to Not Found error:
The requested URL /the-carriers-c-2 was not found on this server.
But if I go back on homepage and click then this link works without any problem.
On 2nd visit the URLs change to : http://website.com/the-carriers-c-2.html
This seems to be a very peculiar problem, I am new to oscommerce so not sure what the reason is.
Any help would be great.
What version of oscommerce are you running.
earlier versions of oscommerce required third party mods for SEO URLs. I agree with random, that is a generated url by the system.
you should have an .htaccess file in your root, it may be renaned or missing, also you need to have MOD URL REWRITE running on your apache web server so apache knows to handle these kinds of urls properly.

Exchange Server 2007 is altering href value

I am creating an email going out to internal users with the following code that has a link to an internal directory:
\\abc\123
And for whatever reason, the mail that comes in shows:
\\abc\123 and the link points to /abc/123
I am suspecting Exchange Server of somehow altering the mail message to make it less "dangerous", but I am really stuck here since this is a network address, going to internal users! When they click the link it doesn't show the directory.
Any help would be much appreciated!
Ok, finally figured this one out.
Exchange takes a lot of liberty when it re-renders the HTML and assumes that you want to put a relative web link versus network path.
That's why all the "\" were converted to "/".
The way around this is to add "file:///" prior to the href address:
\\abc\123
will work!