| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Splash Page Alternatives | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#41
|
|||||||
|
|||||||
![]() OK, I deleted my index.html and my index.php files. Now weirdly enough, when I type in my address, my index page still comes up. How is that possible when the html code for it no longer exists? I totally deleted it...I'm so confused lol!
__________________
Danielle X-Cart Pro 4.0.10 X-Gift-Registry X-AOM |
|||||||
#42
|
|||||||
|
|||||||
![]() Here is a solution I have found works perfectly. I think it is good to the search engines because they dont respond to javascript.. but I am not sure. I still have my index page with links to the store, to redirect search engines. Again, not sure if it matters...
</HEAD> <SCRIPT LANGUAGE="javascript"> <!-- window.location.href="index.php"; //--> </SCRIPT> Thats all I do. Its in my 404 pages as well. Its pretty transparent I think and so far everyone seems to be redirected without a hitch. you can see it in action (or not see it as the case may be) at www.obsusa.com/store/index.html
__________________
http://www.obsstore.com XCart Gold 4.1.10 Apache PHP Version 4.3.4 MySQL server 4.0.20-standard MySQL client 3.23.49 |
|||||||
#43
|
|||||||
|
|||||||
![]() Much has been said about Google and other SE requiring 301 permanent redirects - the standard index.php file is:
[Note location may be different] <? Header( "Location: ./shop/xcart/customer/home.php" ); ?> Simply change to : <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: ./shop/xcart/customer/home.php" ); ?> This gives the SE the correct information. You can check whether you are returning a 301 or 302 here http://www.searchenginepromotionhelp.com/m/http-server-response/code-checker.php and more info / alternaive ways here : http://www.webconfs.com/how-to-redirect-a-webpage.php Richard www.manicmonday.co.uk |
|||||||
#44
|
|||||||
|
|||||||
![]() post removed.
__________________
Alan Weidner x-cart 4.0.16 gold + CSS friendly template add-on |
|||||||
#45
|
|||||||||
|
|||||||||
![]() Well, after reading through the currently 3 pages of posts on this topic, I thought I'd share what we have done by throwing in our two-bits:
I found this example on page 1, but the output was not as one may desire (with our service provider, at least). Changing to the following took care of displaying w/o a splash and correcting necessary links: Root index.php File Code:
Here's an example of our .htaccess file in our root directory. This RewriteEngine suggestion seemed to make perfect sense. In summary, this forces a standard-format version of your domain for help with Google PageRank, etc. [list=1][*]Resolves http://IP_ADDRESS_HERE to standard URL format[*]Resolves http://DOMAIN_NAME.COM to standard URL format (with www)[*]Resolves http://www.yOuR_doMAin_naMe.coM to standard URL format (converts to proper-case, custom defined)[*]Resolves common ErrorDocuments 400,403, and 404 to root of your site.[/list ![]() In summary, any of the aforementioned link examples ALL resolve back to the root. The benefit of this method is that the first code posted above returns an HTTP Response of 200, which is common and treated just fine by SE indexing bots. As for the link examples using RewriteEngine, they redirect using the Search Engine Friendly 301 Response (Permanent Redirect) * You can validate all of this via links referenced throughout this topic. And now, onto the code! Root .htaccess file Code:
From: http://forum.x-cart.com/viewtopic.php?t=25757 Last but not least... With our version of X-Cart 4.0.16 Gold (as well as the others), default links from clicking on your site logo resolve to http://www.yourdomain.com/shop ... so, we decided to account for this by modifying the shop/index.php to the following: Our /shop/index.php File Code:
The above method utilizes the 301 Response (Permanent Redirect) method, which is exactly what we desired! As for those of you using the HTML catalog, all of the method utilized above can work for you with simple modification (i.e. changing .php to .html, and changing the index.php example above to utilize the .htaccess Redirect permanent http://... method! Just place that .htaccess inside /shop!) Hopefully this helps, it seemed to be the solution we needed with NO MODIFICATION to our existing shop, minus modifying the index files.
__________________
X-Cart 4.0.16-.19 Gold [unix] / DSEFU |
|||||||||
#46
|
|||||||
|
|||||||
![]() Quote:
You could just delete index.html in your directory. For me it was /store/index.html.
__________________
X-Cart Pro v4.1.1 |
|||||||
#47
|
|||||||
|
|||||||
![]() Hmm. I have read over the post in this thread numerous times and there are numerous solutions it seems. It seems to me at least the two best for SEO are:
From page 2, TelaFirma 's Code:
And from page 4, moneysaver67's Code:
Now I am still confused as to what is best? Anyone have any input? Thanks a lot
__________________
X-Cart Gold Version 4.0.18 EWDHosting.com is my Host Unix Servers |
|||||||
|
|||
X-Cart forums © 2001-2020
|