If you work remotely full time for a company that's office is in a different city or state than yours, is your salary based on your location or the company's location?
In the past I have seen this can rely on the intentions of the employer.
For example, if they know you are good and want you badly but at the same time know you are not able to move and work at their location, they will most likely offer you the salary that is in the scale of the other employee's.
On the other hand, if they want you just because you are cheaper than others in that region/country, they will offer accordingly, because else they would just hire someone closer for a normal amount of salary. So it all depends on the reason why they are hiring.
There is no one answer to this.
Some companies have set ranges for their job titles. They stick to these ranges reguarless of wether they are high or low for the area.
Some companies have contractual obligations to pay certian rates. It may be possible that the contract would state that certian areas get paid more. This is sometimes true for government contractors. The government will mandate the pay rate for the position with adjustments based on the cost of living in the area. In this way people living in NY or DC can sometimes make 50% more than someone living in a rural midwest community.
Many companies have guidelines for their pay ranges but can go above or below depending on the circumstances. In this situation the company will usually look for the pay rate that is most advantageous to them and use that for bargianing. So if you are in an area where the average rate is much higher than their office location then they would try to use the office rate. But will gladly reverse it if the opposite is true.
You can generally negotiate much better before accepting the position than you can once you are employed at the lower rate.