Forums / General Questions / .htaccess - I want to use my dedicated ip instead

.htaccess - I want to use my dedicated ip instead

Views: 795

Results 1 to 7 of 7
14 Feb 2012, 6:43 AM
#1
warroyo90 avatar

warroyo90

New Zenner

Join Date:
Jan 2012
Posts:
59
Plugin Contributions:
0

.htaccess - I want to use my dedicated ip instead

hi I have searched the forums but have not been able to find a straight answer.
my domain is currently set to blahblah.com
I want to use my dedicated ip instead of that as my domain.

what .htaccess and config files(specific folders) would i need to edit and what would the code be for the .htaccess files
thank you

14 Feb 2012, 7:43 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: .htaccess - I want to use my dedicated ip instead

Important question: WHY?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Feb 2012, 12:41 PM
#3
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: .htaccess - I want to use my dedicated ip instead

DrByte:

Important question: WHY?

Because 123.45.6.7 is MUCH easier to remember and type than blahblah.com

Gee, you ask some silly questions sometimes doc :wink2:

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

14 Feb 2012, 2:28 PM
#4
warroyo90 avatar

warroyo90

New Zenner

Join Date:
Jan 2012
Posts:
59
Plugin Contributions:
0

Re: .htaccess - I want to use my dedicated ip instead

Actually there is a very good reason and that is because I currently have a live site that is being masked by the domain for
My new site so they conflict which is why I am using a dedicated ip until the new site Is done... So can I get some help?

14 Feb 2012, 7:30 PM
#5
warroyo90 avatar

warroyo90

New Zenner

Join Date:
Jan 2012
Posts:
59
Plugin Contributions:
0

Re: .htaccess - I want to use my dedicated ip instead

just to be clear I have got the redirect figure out I think but there are 3 .htaccess files which one would i modify or all? or should i create a new .htaccess in the root?

14 Feb 2012, 11:18 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: .htaccess - I want to use my dedicated ip instead

As far as Zen Cart is concerned, you DO NOT NEED TO USE .HTACCESS to change the URLs generated for your store. Simply set the HTTP_SERVER setting in your configure.php files.

And you should VERY RARELY ever edit the .htaccess files that come with Zen Cart. And ESPECIALLY NEVER edit them for redirect or rewrite purposes ... because they would be the wrong ones to edit in that case.

If you insist on using .htaccess to do what appears to be an unnecessary thing based on how you've described the situation so far, you'll need to add your own custom .htaccess in the root of your site. Zen Cart DOES NOT come with a .htaccess in the root ... because it doesn't need one. If you have specialized needs that require .htaccess to handle them, then you must add your own file and populate it with the correct things to suit your unique needs.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Feb 2012, 11:23 PM
#7
warroyo90 avatar

warroyo90

New Zenner

Join Date:
Jan 2012
Posts:
59
Plugin Contributions:
0

Re: .htaccess - I want to use my dedicated ip instead

thank you for the response I ended up figuring it out and I had modified the configure files but the problems was that I did not change the file permissions when uploading so the write was never made....

for anyone that may find this thread in search of a similar question:

I edit the 2 configure files located in

includes/configure.php
admin/includes/configure.php

and changed the HTTP_SERVER and HTTPS_SERVER to my new domain

thank you for your responses